put contact in observer group when we remove it but let him see our status. Fixes #1494
This commit is contained in:
parent
9fe2475eba
commit
3317383918
|
@ -2194,6 +2194,7 @@ class Connection:
|
||||||
self.connection.getRoster().delItem(jid)
|
self.connection.getRoster().delItem(jid)
|
||||||
else:
|
else:
|
||||||
self.connection.getRoster().Unsubscribe(jid)
|
self.connection.getRoster().Unsubscribe(jid)
|
||||||
|
self.update_contact(jid, '', [])
|
||||||
|
|
||||||
def _continue_unsubscribe(self, con, iq_obj, agent):
|
def _continue_unsubscribe(self, con, iq_obj, agent):
|
||||||
if iq_obj.getTag('error'):
|
if iq_obj.getTag('error'):
|
||||||
|
|
|
@ -1559,9 +1559,15 @@ _('If "%s" accepts this request you will know his or her status.') % jid)
|
||||||
for cc in ccs:
|
for cc in ccs:
|
||||||
cc.groups = contact.groups
|
cc.groups = contact.groups
|
||||||
self.add_contact_to_roster(cc.jid, account)
|
self.add_contact_to_roster(cc.jid, account)
|
||||||
if gajim.interface.msg_win_mgr.has_window(contact.jid, account):
|
if not remove_auth:
|
||||||
|
contact.name = ''
|
||||||
|
contact.groups = []
|
||||||
|
contact.sub = 'from'
|
||||||
|
gajim.contacts.add_contact(account, contact)
|
||||||
|
self.add_contact_to_roster(contact.jid, account)
|
||||||
|
elif gajim.interface.msg_win_mgr.has_window(contact.jid, account):
|
||||||
c = gajim.contacts.create_contact(jid = contact.jid,
|
c = gajim.contacts.create_contact(jid = contact.jid,
|
||||||
name = contact.name, groups = [_('Not in Roster')],
|
name = '', groups = [_('Not in Roster')],
|
||||||
show = 'not in roster', status = '', ask = 'none',
|
show = 'not in roster', status = '', ask = 'none',
|
||||||
keyID = contact.keyID)
|
keyID = contact.keyID)
|
||||||
gajim.contacts.add_contact(account, c)
|
gajim.contacts.add_contact(account, c)
|
||||||
|
|
Loading…
Reference in New Issue