From 860ddf22b627e6dca6225bddacfb6103eed33d72 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 21 Dec 2023 15:06:54 -0500
Subject: [PATCH] chatview: hide extra panels if interactions buttons are
 absent

Change-Id: I8e56fc3e0a456bc214baf321e4c9e60b77004d2c
GitLab: #1476
---
 src/app/mainview/components/ChatView.qml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/app/mainview/components/ChatView.qml b/src/app/mainview/components/ChatView.qml
index 1c38d67e5..321419237 100644
--- a/src/app/mainview/components/ChatView.qml
+++ b/src/app/mainview/components/ChatView.qml
@@ -133,6 +133,11 @@ Rectangle {
             Connections {
                 target: CurrentConversation
 
+                function onIdChanged() {
+                    if (!chatViewHeader.interactionButtonsVisibility)
+                       extrasPanel.closePanel()
+                }
+
                 function onNeedsHost() {
                     viewCoordinator.presentDialog(appWindow, "mainview/components/HostPopup.qml");
                 }
-- 
GitLab