From fbec652efd4f0667f350de823b71d8ae91d98cae Mon Sep 17 00:00:00 2001 From: mathieui Date: Fri, 22 May 2020 01:34:11 +0200 Subject: Core: dedup some code --- poezio/core/core.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/poezio/core/core.py b/poezio/core/core.py index 8ac88dd4..973c9103 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -2075,16 +2075,7 @@ class Core: # do not join rooms that do not have autojoin # but display them anyway if bm.autojoin: - muc.join_groupchat( - self, - bm.jid, - nick, - passwd=bm.password, - status=self.status.message, - show=self.status.show, - tab=tab) - if tab._text_buffer.last_message is None: - asyncio.ensure_future(mam.on_tab_open(tab)) + tab.join() def check_bookmark_storage(self, features): private = 'jabber:iq:private' in features -- cgit v1.2.3