Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
dd257eb9 by wurstsalat at 2023-04-16T17:34:13+02:00
imprv: GroupchatDetails: Hide OMEMO page in public MUCs

- - - - -


1 changed file:

- gajim/gtk/groupchat_details.py


Changes:

=====================================
gajim/gtk/groupchat_details.py
=====================================
@@ -176,6 +176,12 @@ def _add_groupchat_settings(self) -> None:
         self._ui.settings_box.add(scrolled_window)
 
     def _add_groupchat_encryption(self) -> None:
+        if (self._contact.is_groupchat and
+                self._contact.muc_context == 'public'):
+            # OMEMO is not available for public group chats
+            self._switcher.set_row_visible('encryption-omemo', False)
+            return
+
         self._ui.encryption_box.add(
             OMEMOTrustManager(self._contact.account, self._contact))
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/dd257eb9db85e49f113151915415b66c3752c87d

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/dd257eb9db85e49f113151915415b66c3752c87d
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to