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.
This commit is contained in:
Goffi 2019-07-14 21:19:47 +02:00
commit 36f87054d1

View file

@ -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"""