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
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ Rectangle { ...@@ -36,7 +36,7 @@ Rectangle {
signal needToHideConversationInCall signal needToHideConversationInCall
signal pluginSelector signal pluginSelector
property bool callButtonsVisibility: { property bool interactionButtonsVisibility: {
if (CurrentConversation.inCall) if (CurrentConversation.inCall)
return false return false
if (CurrentConversation.isSwarm && if (CurrentConversation.isSwarm &&
...@@ -142,7 +142,7 @@ Rectangle { ...@@ -142,7 +142,7 @@ Rectangle {
PushButton { PushButton {
id: startAAudioCallButton id: startAAudioCallButton
visible: callButtonsVisibility visible: interactionButtonsVisibility
anchors.right: startAVideoCallButton.left anchors.right: startAVideoCallButton.left
anchors.rightMargin: 8 anchors.rightMargin: 8
...@@ -160,7 +160,7 @@ Rectangle { ...@@ -160,7 +160,7 @@ Rectangle {
PushButton { PushButton {
id: startAVideoCallButton id: startAVideoCallButton
visible: callButtonsVisibility visible: interactionButtonsVisibility
anchors.right: selectPluginButton.visible ? selectPluginButton.left : anchors.right: selectPluginButton.visible ? selectPluginButton.left :
sendContactRequestButton.visible ? sendContactRequestButton.visible ?
...@@ -181,7 +181,8 @@ Rectangle { ...@@ -181,7 +181,8 @@ Rectangle {
PushButton { PushButton {
id: selectPluginButton id: selectPluginButton
visible: PluginAdapter.chatHandlersListCount visible: PluginAdapter.chatHandlersListCount &&
interactionButtonsVisibility
anchors.right: sendContactRequestButton.visible ? anchors.right: sendContactRequestButton.visible ?
sendContactRequestButton.left : 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