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


Commits:
d5b91cc6 by wurstsalat at 2024-09-01T20:07:18+02:00
fix: GroupchatRoster: Fix loading roster while participants are added/removed

Fixes #11970

- - - - -


1 changed file:

- gajim/gtk/groupchat_roster.py


Changes:

=====================================
gajim/gtk/groupchat_roster.py
=====================================
@@ -531,7 +531,9 @@ def _load_roster(self) -> None:
             'user-status-show-changed': self._on_user_status_show_changed,
         })
 
-        for participant in self._contact.get_participants():
+        # Convert (copy) participants iterator to list,
+        # since it may change during iteration, see #11970
+        for participant in list(self._contact.get_participants()):
             self._add_contact(participant)
 
         self._enable_sort(True)



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

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/d5b91cc6a7b5e814996bfd4e6607d1a9f0513ae7
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- commits@gajim.org
To unsubscribe send an email to commits-le...@gajim.org

Reply via email to