Mercurial > libervia-backend
comparison sat_frontends/quick_frontend/quick_app.py @ 3006:ba9aaf7d6cd0
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 14 Jul 2019 21:19:47 +0200 |
parents | 49458e12e414 |
children | e7cbe662838b |
comparison
equal
deleted
inserted
replaced
3005:595b8857538b | 3006:ba9aaf7d6cd0 |
---|---|
860 u"Room [{room_jid}] joined by {profile}, users presents:{users}".format( | 860 u"Room [{room_jid}] joined by {profile}, users presents:{users}".format( |
861 room_jid=room_jid_s, profile=profile, users=occupants.keys() | 861 room_jid=room_jid_s, profile=profile, users=occupants.keys() |
862 ) | 862 ) |
863 ) | 863 ) |
864 room_jid = jid.JID(room_jid_s) | 864 room_jid = jid.JID(room_jid_s) |
865 self.contact_lists[profile].setSpecial(room_jid, C.CONTACT_SPECIAL_GROUP) | |
865 self.widgets.getOrCreateWidget( | 866 self.widgets.getOrCreateWidget( |
866 quick_chat.QuickChat, | 867 quick_chat.QuickChat, |
867 room_jid, | 868 room_jid, |
868 type_=C.CHAT_GROUP, | 869 type_=C.CHAT_GROUP, |
869 nick=user_nick, | 870 nick=user_nick, |
870 occupants=occupants, | 871 occupants=occupants, |
871 subject=subject, | 872 subject=subject, |
872 profile=profile, | 873 profile=profile, |
873 ) | 874 ) |
874 self.contact_lists[profile].setSpecial(room_jid, C.CONTACT_SPECIAL_GROUP) | |
875 # chat_widget.update() | |
876 | 875 |
877 def mucRoomLeftHandler(self, room_jid_s, profile): | 876 def mucRoomLeftHandler(self, room_jid_s, profile): |
878 """Called when a MUC room is left""" | 877 """Called when a MUC room is left""" |
879 log.debug( | 878 log.debug( |
880 u"Room [%(room_jid)s] left by %(profile)s" | 879 u"Room [%(room_jid)s] left by %(profile)s" |