comparison sat/plugins/plugin_xep_0313.py @ 3359:000b6722bd35

plugin XEP-0329: added `FISCreateDir` method: This method is used to create a directory for component file sharing, and optionally set its configuration.
author Goffi <goffi@goffi.org>
date Thu, 17 Sep 2020 16:42:00 +0200
parents 40794e658d68
children c3f07c0cb2de
comparison
equal deleted inserted replaced
3358:b14e95f7034f 3359:000b6722bd35
85 'last_stanza_id': True}, 85 'last_stanza_id': True},
86 profile=client.profile) 86 profile=client.profile)
87 if not last_mess: 87 if not last_mess:
88 log.info(_("It seems that we have no MAM history yet")) 88 log.info(_("It seems that we have no MAM history yet"))
89 stanza_id = None 89 stanza_id = None
90 # FIXME: we should restrict starting of the archive, as it can be huge
90 else: 91 else:
91 stanza_id = last_mess[0][-1]['stanza_id'] 92 stanza_id = last_mess[0][-1]['stanza_id']
92 rsm_req = rsm.RSMRequest(max_=100, after=stanza_id) 93 rsm_req = rsm.RSMRequest(max_=100, after=stanza_id)
93 mam_req = mam.MAMRequest(rsm_=rsm_req) 94 mam_req = mam.MAMRequest(rsm_=rsm_req)
94 complete = False 95 complete = False