Commit 98bd4c24 authored by mathieui's avatar mathieui

muctab: fix closing a tab not in bookmarks

………
parent 5cfb0cbf
Pipeline #3577 passed with stages
in 5 minutes and 19 seconds
...@@ -1525,10 +1525,9 @@ class MucTab(ChatTab): ...@@ -1525,10 +1525,9 @@ class MucTab(ChatTab):
""" """
self.leave_room(msg) self.leave_room(msg)
if config.get('synchronise_open_rooms'): if config.get('synchronise_open_rooms'):
if self.jid not in self.core.bookmarks: if self.jid in self.core.bookmarks:
return self.core.bookmarks[self.jid].autojoin = False
self.core.bookmarks[self.jid].autojoin = False self.core.bookmarks.save(self.core.xmpp)
self.core.bookmarks.save(self.core.xmpp)
self.core.close_tab(self) self.core.close_tab(self)
def on_close(self) -> None: def on_close(self) -> None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment