remove groupchats from roster when the tab is destroyed

This commit is contained in:
Julien Pivotto 2007-06-07 12:47:07 +00:00
parent 2f6c9f0d19
commit 08a8d169e9
1 changed files with 4 additions and 0 deletions

View File

@ -1451,6 +1451,10 @@ class GroupchatControl(ChatControlBase):
del self.handlers[i] del self.handlers[i]
# Remove unread events from systray # Remove unread events from systray
gajim.events.remove_events(self.account, self.room_jid) gajim.events.remove_events(self.account, self.room_jid)
contact = gajim.contacts.get_contact_with_highest_priority(self.account, \
self.room_jid)
if contact:
gajim.interface.roster.remove_contact(contact, self.account)
def allow_shutdown(self, method): def allow_shutdown(self, method):
'''If check_selection is True, ''' '''If check_selection is True, '''