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

This commit is contained in:
Yann Leboulanger 2015-09-16 20:43:57 +02:00
parent 44822d3837
commit 2260314509
1 changed files with 1 additions and 1 deletions

View File

@ -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))