[Gabriel] add <confirm> tag when we reply to XEP-0070 request when it's a message. Fixes #5690
This commit is contained in:
parent
b8df75537b
commit
974001196d
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue