quick_frontend (contact_list): rename QuickContactList.remove to QuickContactList.removeContact + remove the contact from _roster attribute (and not only from _cache)
This commit is contained in:
parent
fbec02d396
commit
c1b7c3c027
1 changed files with 6 additions and 3 deletions
|
|
@ -543,7 +543,7 @@ class QuickApp(object):
|
|||
chat_widget = self.widgets.getWidget(quick_chat.QuickChat, room_jid, profile)
|
||||
if chat_widget:
|
||||
self.widgets.deleteWidget(chat_widget)
|
||||
self.contact_lists[profile].remove(room_jid)
|
||||
self.contact_lists[profile].removeContact(room_jid)
|
||||
|
||||
def roomUserJoinedHandler(self, room_jid_s, user_nick, user_data, profile):
|
||||
"""Called when an user joined a MUC room"""
|
||||
|
|
@ -643,7 +643,7 @@ class QuickApp(object):
|
|||
|
||||
def contactDeletedHandler(self, jid_s, profile):
|
||||
target = jid.JID(jid_s)
|
||||
self.contact_lists[profile].remove(target)
|
||||
self.contact_lists[profile].removeContact(target, in_roster=True)
|
||||
|
||||
def entityDataUpdatedHandler(self, entity_s, key, value, profile):
|
||||
entity = jid.JID(entity_s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue