diff options
author | trilene <trilene@runbox.com> | 2020-07-10 19:19:48 -0400 |
---|---|---|
committer | trilene <trilene@runbox.com> | 2020-07-10 19:19:48 -0400 |
commit | 7a206441c86cd2aa84cbbbc6be803f03b2f355ab (patch) | |
tree | 1fe734ab983daa8998eb23432bd560d7dabf7866 /resources/qml/delegates | |
parent | Fix m.relates_to being sent as 'null' when not set in encrypted messages. (diff) | |
download | nheko-7a206441c86cd2aa84cbbbc6be803f03b2f355ab.tar.xz |
Support voice calls
Diffstat (limited to 'resources/qml/delegates')
-rw-r--r-- | resources/qml/delegates/MessageDelegate.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/resources/qml/delegates/MessageDelegate.qml b/resources/qml/delegates/MessageDelegate.qml index 17fe7360..52e628be 100644 --- a/resources/qml/delegates/MessageDelegate.qml +++ b/resources/qml/delegates/MessageDelegate.qml @@ -91,6 +91,24 @@ Item { } } DelegateChoice { + roleValue: MtxEvent.CallInvite + NoticeMessage { + text: qsTr("%1 placed a voice call.").arg(model.data.userName) + } + } + DelegateChoice { + roleValue: MtxEvent.CallAnswer + NoticeMessage { + text: qsTr("%1 answered the call.").arg(model.data.userName) + } + } + DelegateChoice { + roleValue: MtxEvent.CallHangUp + NoticeMessage { + text: qsTr("%1 ended the call.").arg(model.data.userName) + } + } + DelegateChoice { // TODO: make a more complex formatter for the power levels. roleValue: MtxEvent.PowerLevels NoticeMessage { |