when sub = 'to' and we remove contact (but allow other side to see our status) completely remove contact

This commit is contained in:
Yann Leboulanger 2006-03-30 18:52:59 +00:00
parent b7e4465ed5
commit 6ecdbb7470
1 changed files with 1 additions and 1 deletions

View File

@ -1708,7 +1708,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
for u in gajim.contacts.get_contact(account, contact.jid): for u in gajim.contacts.get_contact(account, contact.jid):
self.remove_contact(u, account) self.remove_contact(u, account)
gajim.contacts.remove_jid(account, u.jid) gajim.contacts.remove_jid(account, u.jid)
if not remove_auth: if not remove_auth and contact.sub == 'both':
contact.name = '' contact.name = ''
contact.groups = [] contact.groups = []
contact.sub = 'from' contact.sub = 'from'