From 6a1a9b60aaf0e883ae1073ba624f7d3ce07f8c45 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Fri, 14 Jul 2023 13:30:54 -0400
Subject: [PATCH] MessageBar: do not show sendFile/Location for a SIP account

Change-Id: I4f2fc87c2ec1083605f8a287eecac67ff950c821
---
 src/app/constant/JamiStrings.qml           | 4 ++--
 src/app/mainview/components/MessageBar.qml | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/app/constant/JamiStrings.qml b/src/app/constant/JamiStrings.qml
index 5ca12f223..9e4d03fc5 100644
--- a/src/app/constant/JamiStrings.qml
+++ b/src/app/constant/JamiStrings.qml
@@ -804,8 +804,8 @@ Item {
     property string quote: qsTr("Quote")
     property string unorderedList: qsTr("Unordered list")
     property string orderedList: qsTr("Ordered list")
-    property string showFormating: qsTr("Show Formating")
-    property string hideFormating: qsTr("Hide Formating")
+    property string showFormating: qsTr("Show formating")
+    property string hideFormating: qsTr("Hide formating")
     property string shiftEnterNewLine: qsTr("Press Shift+Enter to insert a new line")
     property string enterNewLine: qsTr("Press Enter to insert a new line")
     property string send: qsTr("Send")
diff --git a/src/app/mainview/components/MessageBar.qml b/src/app/mainview/components/MessageBar.qml
index 5ca657a2a..92f025f1c 100644
--- a/src/app/mainview/components/MessageBar.qml
+++ b/src/app/mainview/components/MessageBar.qml
@@ -61,7 +61,8 @@ Rectangle {
 
     ComboBox {
         id: showMoreButton
-        width: JamiTheme.chatViewFooterButtonSize
+        visible: !CurrentConversation.isSip
+        width: CurrentConversation.isSip? 0 : JamiTheme.chatViewFooterButtonSize
         height: JamiTheme.chatViewFooterButtonSize
 
         anchors.leftMargin: marginSize
-- 
GitLab