MucTab /leave: toggle off autojoin instead of removing bookmark

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2020-05-24 17:44:45 +02:00
parent ad683b4b68
commit f8e471912c

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)