diff options
author | Philipp Hörist <philipp@hoerist.com> | 2023-11-04 21:03:21 +0300 |
---|---|---|
committer | Philipp Hörist <philipp@hoerist.com> | 2023-11-04 21:03:21 +0300 |
commit | 86da12569b76e38a545ccac598fd6587c62c711e (patch) | |
tree | 517812e25396d69a02a4e34fd56f2dd2cbc32404 /gajim | |
parent | 546669e2cd155fda1b1d9bb9c595ca040ee6e4b8 (diff) |
fix: Presence: Don’t fail on unknown MUC presences
Fixes #10967
Diffstat (limited to 'gajim')
-rw-r--r-- | gajim/common/modules/presence.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gajim/common/modules/presence.py b/gajim/common/modules/presence.py index 8e1845731..28a3a607a 100644 --- a/gajim/common/modules/presence.py +++ b/gajim/common/modules/presence.py @@ -95,8 +95,8 @@ class Presence(BaseModule): # 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 @@ class Presence(BaseModule): 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: |