Support voice calls
This commit is contained in:
parent
c973fd759b
commit
7a206441c8
33 changed files with 1655 additions and 101 deletions
|
|
@ -404,6 +404,21 @@ Example: https://server.my:8787</translation>
|
|||
<source>%1 created and configured room: %2</source>
|
||||
<translation>%1 created and configured room: %2</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>%1 placed a voice call.</source>
|
||||
<translation>%1 placed a voice call.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>%1 answered the call.</source>
|
||||
<translation>%1 answered the call.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+6"/>
|
||||
<source>%1 ended the call.</source>
|
||||
<translation>%1 ended the call.</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>Placeholder</name>
|
||||
|
|
@ -1796,6 +1811,36 @@ Media size: %2
|
|||
<source>%1 sent an encrypted message</source>
|
||||
<translation>%1 sent an encrypted message</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+5"/>
|
||||
<source>You placed a call</source>
|
||||
<translation>You placed a call</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+3"/>
|
||||
<source>%1 placed a call</source>
|
||||
<translation>%1 placed a call</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+5"/>
|
||||
<source>You answered a call</source>
|
||||
<translation>You answered a call</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+3"/>
|
||||
<source>%1 answered a call</source>
|
||||
<translation>%1 answered a call</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+5"/>
|
||||
<source>You ended a call</source>
|
||||
<translation>You ended a call</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location line="+3"/>
|
||||
<source>%1 ended a call</source>
|
||||
<translation>%1 ended a call</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>popups::UserMentions</name>
|
||||
|
|
|
|||
BIN
resources/media/callend.mp3
Normal file
BIN
resources/media/callend.mp3
Normal file
Binary file not shown.
BIN
resources/media/callend.ogg
Normal file
BIN
resources/media/callend.ogg
Normal file
Binary file not shown.
BIN
resources/media/ring.mp3
Normal file
BIN
resources/media/ring.mp3
Normal file
Binary file not shown.
BIN
resources/media/ring.ogg
Normal file
BIN
resources/media/ring.ogg
Normal file
Binary file not shown.
BIN
resources/media/ringback.mp3
Normal file
BIN
resources/media/ringback.mp3
Normal file
Binary file not shown.
BIN
resources/media/ringback.ogg
Normal file
BIN
resources/media/ringback.ogg
Normal file
Binary file not shown.
|
|
@ -90,6 +90,24 @@ Item {
|
|||
text: qsTr("%1 created and configured room: %2").arg(model.data.userName).arg(model.data.roomId)
|
||||
}
|
||||
}
|
||||
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
|
||||
|
|
|
|||
|
|
@ -136,4 +136,9 @@
|
|||
<file>qml/delegates/Placeholder.qml</file>
|
||||
<file>qml/delegates/Reply.qml</file>
|
||||
</qresource>
|
||||
<qresource prefix="/media">
|
||||
<file>media/ring.ogg</file>
|
||||
<file>media/ringback.ogg</file>
|
||||
<file>media/callend.ogg</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue