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

This commit is contained in:
Yann Leboulanger 2010-04-09 15:11:04 +02:00
parent b8df75537b
commit 974001196d
1 changed files with 6 additions and 2 deletions

View File

@ -990,7 +990,11 @@ ConnectionCaps, ConnectionHandlersBase, ConnectionJingle):
if not self.connection or self.connected < 2: if not self.connection or self.connected < 2:
return return
if answer == 'yes': 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': elif answer == 'no':
err = common.xmpp.Error(iq_obj, err = common.xmpp.Error(iq_obj,
common.xmpp.protocol.ERR_NOT_AUTHORIZED) common.xmpp.protocol.ERR_NOT_AUTHORIZED)