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


Commits:
86da1256 by Philipp Hörist at 2023-11-04T19:03:21+01:00
fix: Presence: Don’t fail on unknown MUC presences

Fixes #10967

- - - - -


1 changed file:

- gajim/common/modules/presence.py


Changes:

=====================================
gajim/common/modules/presence.py
=====================================
@@ -95,8 +95,8 @@ def _presence_received(self,
             # MUC occupant presences are already handled in MUC module
             return
 
-        muc = self._con.get_module('MUC').get_muc_data(properties.jid)
-        if muc is not None:
+        contact = self._con.get_module('Contacts').get_contact(properties.jid)
+        if contact.is_groupchat:
             # Presence from the MUC itself, used for MUC avatar
             # handled in VCardAvatars module
             return
@@ -106,7 +106,6 @@ def _presence_received(self,
         presence_data = PresenceData.from_presence(properties)
         self._presence_store[properties.jid] = presence_data
 
-        contact = self._con.get_module('Contacts').get_contact(properties.jid)
         contact.update_presence(presence_data)
 
         if properties.is_self_presence:



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

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