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:
parent
3b21a727dd
commit
36f87054d1
1 changed files with 1 additions and 2 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue