Commit bf18246c authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

add type='submit' to MAM request data form. Fixes #8149

parent 89bc5fbf
......@@ -103,7 +103,7 @@ def request_archive(self, start=None, end=None, with_=None, after=None,
iq_ = nbxmpp.Iq('set')
query = iq_.addChild('query', namespace=nbxmpp.NS_MAM)
x = query.addChild('x', namespace=nbxmpp.NS_DATA)
x = query.addChild(node=nbxmpp.DataForm(typ='submit'))
x.addChild(node=nbxmpp.DataField(typ='hidden', name='FORM_TYPE', value=nbxmpp.NS_MAM))
if start:
x.addChild(node=nbxmpp.DataField(typ='text-single', name='start', value=start))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment