plugin XEP-0313: fix getting MAM archive when history is empty
This commit is contained in:
parent
e60b64d876
commit
fca70e1710
1 changed files with 3 additions and 2 deletions
|
|
@ -86,8 +86,9 @@ class XEP_0313(object):
|
||||||
profile=client.profile)
|
profile=client.profile)
|
||||||
if not last_mess:
|
if not last_mess:
|
||||||
log.info(_("It seems that we have no MAM history yet"))
|
log.info(_("It seems that we have no MAM history yet"))
|
||||||
return
|
stanza_id = None
|
||||||
stanza_id = last_mess[0][-1]['stanza_id']
|
else:
|
||||||
|
stanza_id = last_mess[0][-1]['stanza_id']
|
||||||
rsm_req = rsm.RSMRequest(max_=100, after=stanza_id)
|
rsm_req = rsm.RSMRequest(max_=100, after=stanza_id)
|
||||||
mam_req = mam.MAMRequest(rsm_=rsm_req)
|
mam_req = mam.MAMRequest(rsm_=rsm_req)
|
||||||
complete = False
|
complete = False
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue