From 7c4c54d516c01a045b23e6e816806fcb963f87d8 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 24 Nov 2010 09:38:29 +0100 Subject: [PATCH] handle groupchat presence in roster after it's fully treated. Fixes #6047 --- src/roster_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/roster_window.py b/src/roster_window.py index eeb18db5b..5b6b92380 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -6231,7 +6231,9 @@ class RosterWindow: gajim.ged.register_event_handler('presence-received', ged.GUI1, self._nec_presence_received) - gajim.ged.register_event_handler('gc-presence-received', ged.GUI1, + # presence has to be fully handled so that contact is added to occupant + # list before roster can be correctly updated + gajim.ged.register_event_handler('gc-presence-received', ged.GUI2, self._nec_gc_presence_received) gajim.ged.register_event_handler('roster-received', ged.GUI1, self._nec_roster_received)