From 6474ea0d98f5a0daee2ad5c499d2a0aa6eaf8016 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 11 Aug 2010 23:53:08 +0200 Subject: [PATCH] update XEP-184 support by including id of request in answer --- src/common/connection_handlers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index f471907cc..61798beff 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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)