Commit bf18246c authored by Yann Leboulanger's avatar Yann Leboulanger

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

parent 89bc5fbf
......@@ -103,7 +103,7 @@ class ConnectionArchive313(ConnectionArchive):
max=30):
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))
......
Markdown is supported
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