From 02a80519ab9719e2037eba630af205bde255f586 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Thu, 21 Oct 2021 10:23:39 -0400
Subject: [PATCH] settings: hide STUN settings for Jami accounts

as the DHT will do the job of the STUN

Change-Id: If122f93f0430c687c040b31066a8bd5b61cf03ee
---
 src/settingsview/components/AdvancedConnectivitySettings.qml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/settingsview/components/AdvancedConnectivitySettings.qml b/src/settingsview/components/AdvancedConnectivitySettings.qml
index 144a90888..b7b29a473 100644
--- a/src/settingsview/components/AdvancedConnectivitySettings.qml
+++ b/src/settingsview/components/AdvancedConnectivitySettings.qml
@@ -191,6 +191,7 @@ ColumnLayout {
             labelText: JamiStrings.useSTUN
             fontPointSize: JamiTheme.settingsFontSize
 
+            visible: isSIP
             checked: CurrentAccount.enable_STUN
 
             onSwitchToggled: CurrentAccount.enable_STUN = checked
@@ -203,6 +204,7 @@ ColumnLayout {
             Layout.preferredHeight: JamiTheme.preferredFieldHeight
 
             enabled: checkBoxSTUNEnable.checked
+            visible: isSIP
 
             textField: CurrentAccount.server_STUN
 
-- 
GitLab