Merge branch 'bookmark-autojoin' into 'master'

MucTab /leave: toggle off autojoin instead of removing bookmark

See merge request poezio/poezio!115
This commit is contained in:
Maxime Buquet 2020-05-24 17:54:05 +02:00
commit 4ced0bd7bf

View file

@ -1490,7 +1490,7 @@ class MucTab(ChatTab):
"""
self.leave_room(msg)
if config.get('synchronise_open_rooms'):
self.core.bookmarks.remove(self.jid)
self.core.bookmarks[self.jid].autojoin = False
self.core.bookmarks.save(self.core.xmpp)
self.core.close_tab(self)