From bc6e734fec62a0c6772f23fed394a43f791afed6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 May 2023 19:10:37 +0300 Subject: Jabber: more fixes for #3521 --- protocols/JabberG/src/jabber_iqid.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp index 53dbe2d149..90e6031efa 100644 --- a/protocols/JabberG/src/jabber_iqid.cpp +++ b/protocols/JabberG/src/jabber_iqid.cpp @@ -1133,6 +1133,9 @@ void CJabberProto::OnIqResultGetOmemodevicelist(const TiXmlElement* iqNode, CJab return; const char *from = XmlGetAttr(iqNode, "from"); //replies for our jid don't contain "from" + if (IsMyOwnJID(from)) + from = nullptr; + bool res = false; if (auto *pubsubNode = XmlGetChildByTag(iqNode, "pubsub", "xmlns", JABBER_FEAT_PUBSUB)) if (auto *itemsNode = XmlGetChildByTag(pubsubNode, "items", "node", JABBER_FEAT_OMEMO ".devicelist")) -- cgit v1.2.3