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


Commits:
e4dd62b4 by Philipp Hörist at 2025-03-02T15:19:16+01:00
fix: StartChat: Don't crash when groupchat is in Roster

- - - - -


1 changed file:

- gajim/gtk/start_chat.py


Changes:

=====================================
gajim/gtk/start_chat.py
=====================================
@@ -227,6 +227,10 @@ def _add_contacts(self, scale: int) -> None:
             for jid, _data in client.get_module("Roster").iter():
                 contact = client.get_module("Contacts").get_contact(jid)
 
+                if isinstance(contact, GroupchatContact):
+                    # Workaround if groupchats are in the roster
+                    continue
+
                 item = ContactListItem(
                     account,
                     contact,



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

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