summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/tabs/muctab.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 645fb83e..69256cfe 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -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: