changeset 2723:c6be5962752d

plugin XEP-0045: request 50 *last* MAM messages if new archive
author Goffi <goffi@goffi.org>
date Wed, 12 Dec 2018 01:13:15 +0100
parents 14e1db0c1383
children 35a0ab3032bb
files sat/plugins/plugin_xep_0045.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/plugins/plugin_xep_0045.py	Wed Dec 12 00:53:14 2018 +0100
+++ b/sat/plugins/plugin_xep_0045.py	Wed Dec 12 01:13:15 2018 +0100
@@ -876,7 +876,7 @@
                 room_jid=room_jid))
             # we don't want the whole archive if we have no archive yet
             # as it can be huge
-            rsm_req = rsm.RSMRequest(max_=50)
+            rsm_req = rsm.RSMRequest(max_=50, before=u'')
 
         mam_req = mam.MAMRequest(rsm_=rsm_req)
         complete = False