/join: Fix autobookmarking

(broken when moving bookmarks to async)
This commit is contained in:
mathieui 2021-02-07 19:47:31 +01:00
parent 9894e16045
commit 35af913662

View file

@ -382,7 +382,7 @@ class CommandCore:
return (room, set_nick) return (room, set_nick)
@command_args_parser.quoted(0, 2) @command_args_parser.quoted(0, 2)
def join(self, args): async def join(self, args):
""" """
/join [room][/nick] [password] /join [room][/nick] [password]
""" """
@ -428,7 +428,7 @@ class CommandCore:
if config.get('synchronise_open_rooms') and room not in self.core.bookmarks: if config.get('synchronise_open_rooms') and room not in self.core.bookmarks:
method = 'remote' if config.get( method = 'remote' if config.get(
'use_remote_bookmarks') else 'local' 'use_remote_bookmarks') else 'local'
self._add_bookmark( await self._add_bookmark(
room=room, room=room,
nick=nick if not config_nick else None, nick=nick if not config_nick else None,
autojoin=True, autojoin=True,