Skip to content
Snippets Groups Projects
Commit 97400119 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[Gabriel] add <confirm> tag when we reply to XEP-0070 request when it's a message. Fixes #5690

parent b8df7553
No related branches found
No related tags found
No related merge requests found
......@@ -990,10 +990,14 @@ ConnectionCaps, ConnectionHandlersBase, ConnectionJingle):
if not self.connection or self.connected < 2:
return
if answer == 'yes':
self.connection.send(iq_obj.buildReply('result'))
confirm = iq_obj.getTag('confirm')
reply = iq_obj.buildReply('result')
if iq_obj.getType() == 'message':
reply.addChild(node=confirm)
self.connection.send(reply)
elif answer == 'no':
err = common.xmpp.Error(iq_obj,
common.xmpp.protocol.ERR_NOT_AUTHORIZED)
common.xmpp.protocol.ERR_NOT_AUTHORIZED)
self.connection.send(err)
def _HttpAuthCB(self, con, iq_obj):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment