summaryrefslogtreecommitdiff
path: root/poezio/multiuserchat.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/multiuserchat.py')
-rw-r--r--poezio/multiuserchat.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/multiuserchat.py b/poezio/multiuserchat.py
index 49e40791..47244e3d 100644
--- a/poezio/multiuserchat.py
+++ b/poezio/multiuserchat.py
@@ -109,7 +109,8 @@ def join_groupchat(core,
passwd='',
status=None,
show=None,
- seconds=None):
+ seconds=None,
+ tab=None):
xmpp = core.xmpp
stanza = xmpp.make_presence(
pto='%s/%s' % (jid, nick), pstatus=status, pshow=show)
@@ -119,7 +120,7 @@ def join_groupchat(core,
passelement.text = passwd
x.append(passelement)
def on_disco(iq):
- if 'urn:xmpp:mam:2' in iq['disco_info'].get_features():
+ if 'urn:xmpp:mam:2' in iq['disco_info'].get_features() or (tab and tab._text_buffer.last_message):
history = ET.Element('{http://jabber.org/protocol/muc}history')
history.attrib['seconds'] = str(0)
x.append(history)