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

chatview: hide the show plugins button for read-only conversations

Gitlab: #492
Change-Id: I4f5d0ed77dd8d2b4ed20af37525b9d33e967d649
parent 53b5add8
No related branches found
Tags nightly/20230523.0
No related merge requests found
......@@ -36,7 +36,7 @@ Rectangle {
signal needToHideConversationInCall
signal pluginSelector
property bool callButtonsVisibility: {
property bool interactionButtonsVisibility: {
if (CurrentConversation.inCall)
return false
if (CurrentConversation.isSwarm &&
......@@ -142,7 +142,7 @@ Rectangle {
PushButton {
id: startAAudioCallButton
visible: callButtonsVisibility
visible: interactionButtonsVisibility
anchors.right: startAVideoCallButton.left
anchors.rightMargin: 8
......@@ -160,7 +160,7 @@ Rectangle {
PushButton {
id: startAVideoCallButton
visible: callButtonsVisibility
visible: interactionButtonsVisibility
anchors.right: selectPluginButton.visible ? selectPluginButton.left :
sendContactRequestButton.visible ?
......@@ -181,7 +181,8 @@ Rectangle {
PushButton {
id: selectPluginButton
visible: PluginAdapter.chatHandlersListCount
visible: PluginAdapter.chatHandlersListCount &&
interactionButtonsVisibility
anchors.right: sendContactRequestButton.visible ?
sendContactRequestButton.left :
......
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