From 8ed3dad8fe6aa729ffc3c0732a442e38b66c9e2a Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 6 Feb 2012 20:32:41 +0000 Subject: handle old-style receipts --- src/QXmppMessage.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/QXmppMessage.cpp b/src/QXmppMessage.cpp index 58579c43..109c0d84 100644 --- a/src/QXmppMessage.cpp +++ b/src/QXmppMessage.cpp @@ -270,6 +270,10 @@ void QXmppMessage::parse(const QDomElement &element) QDomElement receivedElement = element.firstChildElement("received"); if (!receivedElement.isNull() && receivedElement.namespaceURI() == ns_message_receipts) { m_receiptId = receivedElement.attribute("id"); + + // compatibility with old-style XEP + if (m_receiptId.isEmpty()) + m_receiptId = id(); } else { m_receiptId = QString(); } -- cgit v1.2.3