summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG1
-rw-r--r--poezio/tabs/muctab.py2
2 files changed, 3 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index adcab884..c30cf44e 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -8,6 +8,7 @@ https://dev.louiz.org/projects/poezio/roadmap
- Reorder: Prevent GapTabs from being serialized and ignore when serialized as
they're recreated automatically.
+- Ensure bookmark is present before removing it in /close.
# Bug fixes
diff --git a/poezio/tabs/muctab.py b/poezio/tabs/muctab.py
index 1d4b9657..71eb3411 100644
--- a/poezio/tabs/muctab.py
+++ b/poezio/tabs/muctab.py
@@ -1530,6 +1530,8 @@ 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)
self.core.close_tab(self)