diff options
author | Maxime “pep” Buquet <pep@bouah.net> | 2020-06-24 18:45:48 +0200 |
---|---|---|
committer | Maxime “pep” Buquet <pep@bouah.net> | 2020-06-24 18:48:56 +0200 |
commit | cf65466bcecddedb591baadf29a9896e65cf783e (patch) | |
tree | 69ec47fcdcec89d92f85142f4c839203f7cab201 | |
parent | 57cbbc1bde478fe18b6272430c88e57bbb12674e (diff) | |
download | poezio-cf65466bcecddedb591baadf29a9896e65cf783e.tar.gz poezio-cf65466bcecddedb591baadf29a9896e65cf783e.tar.bz2 poezio-cf65466bcecddedb591baadf29a9896e65cf783e.tar.xz poezio-cf65466bcecddedb591baadf29a9896e65cf783e.zip |
MucTab: Ensure bookmark exists before removing it in /close
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | poezio/tabs/muctab.py | 2 |
2 files changed, 3 insertions, 0 deletions
@@ -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) |