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


Commits:
0e81c119 by Philipp Hörist at 2025-03-16T20:05:22+01:00
fix: MUC: Ignore invites sent by other devices of ours

- - - - -


1 changed file:

- gajim/common/modules/muc.py


Changes:

=====================================
gajim/common/modules/muc.py
=====================================
@@ -1106,6 +1106,14 @@ def _on_invite_or_decline(self,
                               properties: MessageProperties
                               ) -> None:
 
+        assert properties.from_ is not None
+        if properties.from_.bare_match(self._get_own_bare_jid()):
+            # Invite/Decline sent by us and received via MAM or Carbons
+            # TODO: It could make sense to delete a pending invite
+            # if another device of ours decline the invite
+            self._log.warning('Ignored MUC Invite/Decline sent by other 
device')
+            return
+
         if properties.muc_decline is not None:
             data = properties.muc_decline
             contact = self._get_contact(data.muc, groupchat=True)



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

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