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


Commits:
017e696e by wurstsalat at 2025-08-24T13:20:42+02:00
fix: Group chats: Display subject only if it has text

Fixes #12437

- - - - -


1 changed file:

- gajim/gtk/control.py


Changes:

=====================================
gajim/gtk/control.py
=====================================
@@ -279,7 +279,11 @@ def switch_contact(
                 return
 
             muc_data = self._client.get_module("MUC").get_muc_data(contact.jid)
-            if muc_data is not None and muc_data.subject is not None:
+            if (
+                muc_data is not None
+                and muc_data.subject is not None
+                and muc_data.subject.text
+            ):
                 self._scrolled_view.add_muc_subject(
                     muc_data.subject, muc_data.last_subject_timestamp
                 )
@@ -1176,6 +1180,8 @@ def _process_muc_user_left(self, event: 
events.MUCUserLeft) -> None:
     def _on_room_subject(
         self, contact: GroupchatContact, _signal_name: str, subject: MucSubject
     ) -> None:
+        if not subject.text:
+            return
 
         if app.settings.get("show_subject_on_join") or not contact.is_joining:
             self._scrolled_view.add_muc_subject(subject)



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/017e696ece8ff053b072e5a7c7d85f1021e291f8
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