Commit fbec652e authored by mathieui's avatar mathieui

Core: dedup some code

parent b7423ee4
...@@ -2075,16 +2075,7 @@ class Core: ...@@ -2075,16 +2075,7 @@ class Core:
# do not join rooms that do not have autojoin # do not join rooms that do not have autojoin
# but display them anyway # but display them anyway
if bm.autojoin: if bm.autojoin:
muc.join_groupchat( tab.join()
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))
def check_bookmark_storage(self, features): def check_bookmark_storage(self, features):
private = 'jabber:iq:private' in features private = 'jabber:iq:private' in features
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment