remove groupchats from roster when the tab is destroyed
This commit is contained in:
parent
2f6c9f0d19
commit
08a8d169e9
|
@ -1451,6 +1451,10 @@ class GroupchatControl(ChatControlBase):
|
|||
del self.handlers[i]
|
||||
# Remove unread events from systray
|
||||
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):
|
||||
'''If check_selection is True, '''
|
||||
|
|
Loading…
Reference in New Issue