Philipp Hörist pushed to branch master at gajim / gajim


Commits:
425125d5 by Philipp Hörist at 2025-08-08T23:38:17+02:00
fix: GroupchatDetails: Hide user count

Fixes #12417

- - - - -


2 changed files:

- gajim/gtk/groupchat_details.py
- gajim/gtk/groupchat_info.py


Changes:

=====================================
gajim/gtk/groupchat_details.py
=====================================
@@ -117,7 +117,10 @@ def _add_groupchat_manage(self) -> None:
 
     def _add_groupchat_info(self) -> None:
         self._groupchat_info = GroupChatInfoScrolled(
-            self._contact.account, width=600, edit_mode=True
+            self._contact.account,
+            width=600,
+            edit_mode=True,
+            show_users=False,
         )
         self._connect(
             self._groupchat_info, "name-updated", self._on_contact_name_updated


=====================================
gajim/gtk/groupchat_info.py
=====================================
@@ -117,6 +117,7 @@ def __init__(
         width: int = 300,
         minimal: bool = False,
         edit_mode: bool = False,
+        show_users: bool = True,
     ) -> None:
         SignalManager.__init__(self)
         Gtk.ScrolledWindow.__init__(self)
@@ -124,6 +125,7 @@ def __init__(
         self.set_halign(Gtk.Align.CENTER)
 
         self._minimal = minimal
+        self._show_users = show_users
 
         if minimal:
             self.set_policy(Gtk.PolicyType.NEVER, Gtk.PolicyType.NEVER)
@@ -240,8 +242,8 @@ def set_from_disco_info(self, info: DiscoInfo) -> None:
         # Set user
         has_users = info.muc_users is not None
         self._ui.users.set_text(info.muc_users or "")
-        self._ui.users.set_visible(has_users)
-        self._ui.users_image.set_visible(has_users)
+        self._ui.users.set_visible(has_users and self._show_users)
+        self._ui.users_image.set_visible(has_users and self._show_users)
 
         # Set contacts
         container_remove_all(self._ui.contact_box)



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

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


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to