Skip to content
Snippets Groups Projects
Commit 4797d7d5 authored by Sébastien Blin's avatar Sébastien Blin Committed by Andreas Traczyk
Browse files

smartlist: do not add clear conversation on swarm

Change-Id: Iec99bb41a15b0721f7985fb031a29601b8cb675f
parent 951eb3cf
No related branches found
Tags beta/202402071743
No related merge requests found
......@@ -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
......
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