muctab: fix closing a tab not in bookmarks
………
This commit is contained in:
parent
5cfb0cbf43
commit
98bd4c241e
1 changed files with 3 additions and 4 deletions
|
@ -1525,10 +1525,9 @@ class MucTab(ChatTab):
|
|||
"""
|
||||
self.leave_room(msg)
|
||||
if config.get('synchronise_open_rooms'):
|
||||
if self.jid not in self.core.bookmarks:
|
||||
return
|
||||
self.core.bookmarks[self.jid].autojoin = False
|
||||
self.core.bookmarks.save(self.core.xmpp)
|
||||
if self.jid in self.core.bookmarks:
|
||||
self.core.bookmarks[self.jid].autojoin = False
|
||||
self.core.bookmarks.save(self.core.xmpp)
|
||||
self.core.close_tab(self)
|
||||
|
||||
def on_close(self) -> None:
|
||||
|
|
Loading…
Reference in a new issue