quick frontend (app): added "explicit_close" to deleteWidget, and use it on mucRoomLeftHandler:
This flag can be used by frontends to decide if the widget must be really closed or not (otherwise, it may be interesting to keep a widget in memory to avoir recreating a new one each time that the chat must be displayed).
This commit is contained in:
parent
5fae77187a
commit
9a9adb36cb
1 changed files with 12 additions and 6 deletions
|
|
@ -886,7 +886,8 @@ class QuickApp(object):
|
|||
room_jid = jid.JID(room_jid_s)
|
||||
chat_widget = self.widgets.getWidget(quick_chat.QuickChat, room_jid, profile)
|
||||
if chat_widget:
|
||||
self.widgets.deleteWidget(chat_widget)
|
||||
self.widgets.deleteWidget(
|
||||
chat_widget, all_instances=True, explicit_close=True)
|
||||
self.contact_lists[profile].removeContact(room_jid)
|
||||
|
||||
def mucRoomUserChangedNickHandler(self, room_jid_s, old_nick, new_nick, profile):
|
||||
|
|
|
|||
Loading…
Reference in a new issue