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


Commits:
a4156164 by Philipp Hörist at 2026-03-24T19:58:35+01:00
imprv: GroupChat: Automatically rejoin groupchat when kicked due to an error

- - - - -


1 changed file:

- gajim/common/modules/muc.py


Changes:

=====================================
gajim/common/modules/muc.py
=====================================
@@ -62,6 +62,12 @@
 log = logging.getLogger('gajim.c.m.muc')
 
 
+REJOIN_STATUS_CODES = {
+    StatusCode.REMOVED_SERVICE_SHUTDOWN,
+    StatusCode.REMOVED_ERROR
+}
+
+
 class MUC(BaseModule):
 
     _nbxmpp_extends = 'MUC'
@@ -739,8 +745,8 @@ def _on_muc_user_presence(self,
             app.storage.events.store(room, event)
             room.notify('room-kicked', event)
 
-            status_codes = properties.muc_status_codes or []
-            if StatusCode.REMOVED_SERVICE_SHUTDOWN in status_codes:
+            status_codes = properties.muc_status_codes or set()
+            if REJOIN_STATUS_CODES & status_codes:
                 self._start_rejoin_timeout(room_jid)
             return
 



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

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