do not remove contact from roster when we remove a events from a contact and it is not offline. fixes #2583

This commit is contained in:
Yann Leboulanger 2006-10-16 21:01:07 +00:00
parent 21e3f8a6a7
commit 0909fae3cf
1 changed files with 1 additions and 1 deletions

View File

@ -1173,7 +1173,7 @@ class Interface:
if not gajim.config.get('showoffline'):
contact = gajim.contacts.get_contact_with_highest_priority(account,
jid)
if contact:
if contact and contact.show in ('error', 'offline'):
self.roster.really_remove_contact(contact, account)
self.roster.show_title()
self.roster.draw_contact(jid, account)