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/multiuserchat.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'poezio/multiuserchat.py') diff --git a/poezio/multiuserchat.py b/poezio/multiuserchat.py index ee596a0f..49e40791 100644 --- a/poezio/multiuserchat.py +++ b/poezio/multiuserchat.py @@ -13,7 +13,6 @@ slix plugin from xml.etree import cElementTree as ET from poezio.common import safeJID -from poezio import mam from slixmpp import JID from slixmpp.exceptions import IqError, IqTimeout import logging @@ -124,11 +123,11 @@ def join_groupchat(core, history = ET.Element('{http://jabber.org/protocol/muc}history') history.attrib['seconds'] = str(0) x.append(history) - mam.mam_scroll(core.tabs.current_tab) - elif seconds is not None: - history = ET.Element('{http://jabber.org/protocol/muc}history') - history.attrib['seconds'] = str(seconds) - x.append(history) + else: + if seconds is not None: + history = ET.Element('{http://jabber.org/protocol/muc}history') + history.attrib['seconds'] = str(seconds) + x.append(history) stanza.append(x) core.events.trigger('joining_muc', stanza) to = stanza["to"] -- cgit v1.2.3