plugin XEP-0045: request 50 *last* MAM messages if new archive

This commit is contained in:
Goffi 2018-12-12 01:13:15 +01:00
commit 8cc39ea3a5

View file

@ -876,7 +876,7 @@ class SatMUCClient(muc.MUCClient):
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