Skip to content
Snippets Groups Projects
Commit 0679c0e0 authored by Sébastien Blin's avatar Sébastien Blin
Browse files

conversationmenu: fix incorrect end call state

Change-Id: I6420f6233bbf9a92f7821735c02fcc29e478d111
GitLab: #942
parent 98569e2c
No related branches found
Tags nightly/20230523.0
No related merge requests found
......@@ -231,7 +231,6 @@ Item {
property string isCallingYou: qsTr("is calling you")
property string mute: qsTr("Mute")
property string unmute: qsTr("Unmute")
property string hangup: qsTr("End call")
property string pauseCall: qsTr("Pause call")
property string resumeCall: qsTr("Resume call")
property string muteCamera: qsTr("Mute camera")
......
......@@ -276,7 +276,7 @@ Control {
onTriggered: CallAdapter.hangUpThisCall()
icon.source: JamiResources.ic_call_end_white_24dp_svg
icon.color: "white"
text: JamiStrings.hangup
text: JamiStrings.endCall
property bool hasBg: true
},
Action {
......
......@@ -127,6 +127,8 @@ JamiListView {
(model.dataForRow(index, ConversationList.ContactType) !==
Profile.Type.TEMPORARY) &&
CurrentAccount.type !== Profile.Type.SIP
hasCall = UtilsAdapter.getCallId(responsibleAccountId,
responsibleConvUid) !== ""
// For UserProfile dialog.
if (isCoreDialog) {
......
......@@ -36,13 +36,8 @@ ContextMenuAutoLoader {
property var isCoreDialog: undefined
property var mode: undefined
property int contactType: Profile.Type.INVALID
property bool hasCall: {
if (responsibleAccountId && responsibleConvUid)
return UtilsAdapter.getCallId(responsibleAccountId,
responsibleConvUid) !== ""
return false
}
property bool readOnly
property bool hasCall: false
property bool readOnly: false
// For UserProfile dialog.
property string aliasText
......@@ -117,7 +112,7 @@ ContextMenuAutoLoader {
id: hangup
canTrigger: hasCall
itemName: JamiStrings.hangup
itemName: JamiStrings.endCall
iconSource: JamiResources.ic_call_end_white_24dp_svg
addMenuSeparatorAfter: contactType !== Profile.Type.SIP
&& (contactType === Profile.Type.PENDING
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment