remove contact from roster when we read latest event (including non-message event) if showOffline is False. Fixes #1812

This commit is contained in:
Yann Leboulanger 2006-04-05 18:53:21 +00:00
parent 35f2132815
commit 37fd51363a
1 changed files with 8 additions and 0 deletions

View File

@ -1096,6 +1096,10 @@ class Interface:
# Is it the last event?
if not len(qs[jid]):
del qs[jid]
if not gajim.config.get('showoffline'):
contact = gajim.contacts.get_contact_with_highest_priority(account,
jid)
self.roster.really_remove_contact(contact, account)
self.redraw_roster_systray(account, jid, typ)
def remove_event(self, account, jid, event):
@ -1106,6 +1110,10 @@ class Interface:
# Is it the last event?
if not len(qs[jid]):
del qs[jid]
if not gajim.config.get('showoffline'):
contact = gajim.contacts.get_contact_with_highest_priority(account,
jid)
self.roster.really_remove_contact(contact, account)
self.redraw_roster_systray(account, jid, event[0])
def handle_event_file_request_error(self, account, array):