update XEP-184 support by including id of request in <reveived> answer

This commit is contained in:
Yann Leboulanger 2010-08-11 23:53:08 +02:00
parent 9282678d8c
commit 6474ea0d98
1 changed files with 2 additions and 2 deletions

View File

@ -1515,8 +1515,8 @@ ConnectionJingle):
not in (u'to', u'none')) or gc_contact) and mtype != 'error':
receipt = common.xmpp.Message(to=frm, typ='chat')
receipt.setID(msg.getID())
receipt.setTag('received',
namespace='urn:xmpp:receipts')
receipt.setTag('received', namespace='urn:xmpp:receipts',
attrs={'id': msg.getID()})
if thread_id:
receipt.setThread(thread_id)