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


Commits:
ddabee2d by wurstsalat at 2025-08-03T14:09:33+02:00
fix: Group chats: Fix starting chat when real JID is unknown

Fixes #11761

- - - - -


1 changed file:

- gajim/gtk/groupchat_roster.py


Changes:

=====================================
gajim/gtk/groupchat_roster.py
=====================================
@@ -194,8 +194,11 @@ def _on_contact_item_activated(
         assert disco is not None
 
         muc_prefer_direct_msg = app.settings.get("muc_prefer_direct_msg")
-        if disco.muc_is_nonanonymous and muc_prefer_direct_msg:
-            assert participant_contact.real_jid is not None
+        if (
+            disco.muc_is_nonanonymous
+            and muc_prefer_direct_msg
+            and participant_contact.real_jid is not None
+        ):
             dm_params = AddChatActionParams(
                 account=self._contact.account,
                 jid=participant_contact.real_jid,



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

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