From a372e5f49fa78692589aad3b121b1059dcc66b77 Mon Sep 17 00:00:00 2001 From: Madhur Garg Date: Mon, 12 Aug 2019 01:12:59 +0530 Subject: Added a call to scroll for 10 messages on initially joining the room. --- poezio/core/core.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'poezio/core') diff --git a/poezio/core/core.py b/poezio/core/core.py index 26543add..b195fb4e 100644 --- a/poezio/core/core.py +++ b/poezio/core/core.py @@ -29,6 +29,7 @@ from poezio import decorators from poezio import events from poezio import multiuserchat as muc from poezio import tabs +from poezio import mam from poezio import theming from poezio import timed_events from poezio import windows @@ -1997,6 +1998,7 @@ class Core: if not tab: self.open_new_room( bm.jid, nick, focus=False, password=bm.password) + tab = self.tabs.by_name_and_class(bm.jid, tabs.MucTab) self.initial_joins.append(bm.jid) # do not join rooms that do not have autojoin # but display them anyway @@ -2008,6 +2010,7 @@ class Core: passwd=bm.password, status=self.status.message, show=self.status.show) + mam.mam_scroll(tab) def check_bookmark_storage(self, features): private = 'jabber:iq:private' in features -- cgit v1.2.3