correctly remove contacts (force = True when we re-add them after)
This commit is contained in:
parent
ea7a97b1df
commit
aba6fc2599
|
@ -1476,7 +1476,7 @@ class Interface:
|
|||
not name and not groups:
|
||||
# contact removes us.
|
||||
if contacts:
|
||||
self.roster.remove_contact(jid, account, backend=True)
|
||||
self.roster.remove_contact(jid, account, force=True, backend=True)
|
||||
return
|
||||
elif not contacts:
|
||||
if sub == 'remove':
|
||||
|
@ -1496,7 +1496,7 @@ class Interface:
|
|||
old_groups = contacts[0].get_shown_groups()
|
||||
if contacts[0].sub != sub or contacts[0].ask != ask\
|
||||
or old_groups != groups:
|
||||
self.roster.remove_contact(jid, account)
|
||||
self.roster.remove_contact(jid, account, force=True)
|
||||
re_add = True
|
||||
for contact in contacts:
|
||||
if not name:
|
||||
|
@ -2737,7 +2737,7 @@ class Interface:
|
|||
|
||||
if session:
|
||||
ctrl = session.control
|
||||
else:
|
||||
if not ctrl:
|
||||
win = self.msg_win_mgr.get_window(fjid, account)
|
||||
|
||||
if win:
|
||||
|
|
|
@ -1870,7 +1870,7 @@ class RosterWindow:
|
|||
_('If "%s" accepts this request you will know his or her status.'
|
||||
) % jid)
|
||||
return
|
||||
self.remove_contact(contact.jid, account)
|
||||
self.remove_contact(contact.jid, account, force=True)
|
||||
contact.groups = groups
|
||||
if nickname:
|
||||
contact.name = nickname
|
||||
|
|
Loading…
Reference in New Issue