Commit 6fb1a276 authored by Maxime Buquet's avatar Maxime Buquet

Merge branch 'muc-close-inexisting-bookmarks' into 'master'

Muc close inexisting bookmarks

See merge request !147
parents 57cbbc1b cf65466b
Pipeline #3288 failed with stages
in 6 minutes
......@@ -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
......
......@@ -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)
......
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