unassign GPG key in contact instances when we unassign it, and redraw chat control. fixes #2590
This commit is contained in:
parent
5f7ad6fea1
commit
74c447f46b
|
@ -1551,13 +1551,15 @@ class RosterWindow:
|
|||
if keyID[0] == 'None':
|
||||
if contact.jid in keys:
|
||||
del keys[contact.jid]
|
||||
for u in gajim.contacts.get_contact(account, contact.jid):
|
||||
u.keyID = ''
|
||||
else:
|
||||
keys[contact.jid] = keyID[0]
|
||||
for u in gajim.contacts.get_contact(account, contact.jid):
|
||||
u.keyID = keyID[0]
|
||||
if gajim.interface.msg_win_mgr.has_window(contact.jid, account):
|
||||
ctrl = gajim.interface.msg_win_mgr.get_control(contact.jid, account)
|
||||
ctrl.update_ui()
|
||||
if gajim.interface.msg_win_mgr.has_window(contact.jid, account):
|
||||
ctrl = gajim.interface.msg_win_mgr.get_control(contact.jid, account)
|
||||
ctrl.update_ui()
|
||||
keys_str = ''
|
||||
for jid in keys:
|
||||
keys_str += jid + ' ' + keys[jid] + ' '
|
||||
|
|
Loading…
Reference in New Issue