Do not try to remove item from roster if contact is not in roster. Fixes #1967.
This commit is contained in:
parent
d4c11be06d
commit
d7c5230573
|
@ -1108,6 +1108,7 @@ class Interface:
|
|||
if not gajim.config.get('showoffline'):
|
||||
contact = gajim.contacts.get_contact_with_highest_priority(account,
|
||||
jid)
|
||||
if contact:
|
||||
self.roster.really_remove_contact(contact, account)
|
||||
self.redraw_roster_systray(account, jid, typ)
|
||||
|
||||
|
@ -1122,6 +1123,7 @@ class Interface:
|
|||
if not gajim.config.get('showoffline'):
|
||||
contact = gajim.contacts.get_contact_with_highest_priority(account,
|
||||
jid)
|
||||
if contact:
|
||||
self.roster.really_remove_contact(contact, account)
|
||||
self.redraw_roster_systray(account, jid, event[0])
|
||||
|
||||
|
|
Loading…
Reference in New Issue