diff options
author | Miquel Lionel <lionel@les-miquelots.net> | 2021-11-02 12:29:39 +0100 |
---|---|---|
committer | Miquel Lionel <lionel@les-miquelots.net> | 2021-11-02 12:29:39 +0100 |
commit | 09dbd21fef6c18bb79f5dd1b0c73a02dd9fba92d (patch) | |
tree | 5df86ed1844c51648db36a88fae324d442b9279f /qml/Message.qml | |
parent | 3ef429a1b6759d6fe84cc44ed7dea51a3c8be799 (diff) | |
download | kdeltachat-09dbd21fef6c18bb79f5dd1b0c73a02dd9fba92d.tar.gz kdeltachat-09dbd21fef6c18bb79f5dd1b0c73a02dd9fba92d.zip |
Videochat message displayed, rm actions dups
- message.*, qml/Message.qml: Videochat invitation message send from the original DeltaChat
app are displayed. Currently, it's best if the chat instance
use http or https scheme, since it'll normally open in a browser
- qml/ComposePane.qml : We made Shorcuts and actions are needed anymore, no need for duplicates
- qml/main.qml: Fix shortcut help for opening Settings page, it's Shift+Tab not Shift+S.
Diffstat (limited to 'qml/Message.qml')
-rw-r--r-- | qml/Message.qml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/qml/Message.qml b/qml/Message.qml index 37a7546..2798d95 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -276,6 +276,28 @@ RowLayout { } + Component { + id: videoChatView + ColumnLayout { + Loader { + sourceComponent: textMessageView + } + + Button { + text: "Join conference call" + icon.name: "call-start" + Layout.preferredWidth: root.width + Layout.maximumWidth: root.width + hoverEnabled: true + ToolTip.visible: hovered + ToolTip.text: "<u>"+root.message.videochatUrl+"</u>" + //Layout.leftMargin: 30 + //Layout.rightMargin: 30 + onClicked: Qt.openUrlExternally(root.message.videochatUrl) + } + } + } + // This is what show the display name in top of every messages Component { id: textMessageView @@ -347,6 +369,7 @@ RowLayout { : [40, 41].includes(root.message.viewtype) ? audioMessageView : [50].includes(root.message.viewtype) ? videoMessageView : [60].includes(root.message.viewtype) ? anyFileView + : [70].includes(root.message.viewtype) ? videoChatView : textMessageView } |