mirror of
https://git.jami.net/savoirfairelinux/jami-client-qt.git
synced 2025-09-10 12:03:18 +02:00
smartlist: do not add clear conversation on swarm
Change-Id: Iec99bb41a15b0721f7985fb031a29601b8cb675f
This commit is contained in:
parent
951eb3cf85
commit
4797d7d511
2 changed files with 14 additions and 0 deletions
|
@ -139,6 +139,7 @@ ListView {
|
|||
|
||||
responsibleAccountId = LRCInstance.currentAccountId
|
||||
responsibleConvUid = item.convId
|
||||
isSwarm = item.isSwarm
|
||||
contactType = item.contactType
|
||||
|
||||
userProfile.responsibleConvUid = item.convId
|
||||
|
|
|
@ -32,6 +32,7 @@ ContextMenuAutoLoader {
|
|||
|
||||
property string responsibleAccountId: ""
|
||||
property string responsibleConvUid: ""
|
||||
property bool isSwarm: false
|
||||
property int contactType: Profile.Type.INVALID
|
||||
property bool hasCall: {
|
||||
if (responsibleAccountId && responsibleConvUid)
|
||||
|
@ -55,6 +56,18 @@ ContextMenuAutoLoader {
|
|||
false)
|
||||
}
|
||||
},
|
||||
GeneralMenuItem {
|
||||
id: clearConversation
|
||||
|
||||
canTrigger: !isSwarm
|
||||
itemName: JamiStrings.clearConversation
|
||||
iconSource: "qrc:/images/icons/place_audiocall-24px.svg"
|
||||
onClicked: {
|
||||
MessagesAdapter.clearConversationHistory(
|
||||
responsibleAccountId,
|
||||
responsibleConvUid)
|
||||
}
|
||||
},
|
||||
GeneralMenuItem {
|
||||
id: startAudioCall
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue