From 36f87054d1c0644a95d7397dca741e68987801cf Mon Sep 17 00:00:00 2001 From: Goffi Date: Sun, 14 Jul 2019 21:19:47 +0200 Subject: [PATCH] quick frontends (app): setSpecial is now called before getOrCreateWidget in mucRoomJoinedHandler: this avoid a issue in Primitivus where the contact list selection is done before the room is actually added to the contact list. --- sat_frontends/quick_frontend/quick_app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sat_frontends/quick_frontend/quick_app.py b/sat_frontends/quick_frontend/quick_app.py index 81f9e518..8b207108 100644 --- a/sat_frontends/quick_frontend/quick_app.py +++ b/sat_frontends/quick_frontend/quick_app.py @@ -862,6 +862,7 @@ class QuickApp(object): ) ) room_jid = jid.JID(room_jid_s) + self.contact_lists[profile].setSpecial(room_jid, C.CONTACT_SPECIAL_GROUP) self.widgets.getOrCreateWidget( quick_chat.QuickChat, room_jid, @@ -871,8 +872,6 @@ class QuickApp(object): subject=subject, profile=profile, ) - self.contact_lists[profile].setSpecial(room_jid, C.CONTACT_SPECIAL_GROUP) - # chat_widget.update() def mucRoomLeftHandler(self, room_jid_s, profile): """Called when a MUC room is left"""