diff options
author | George Hazan <george.hazan@gmail.com> | 2023-05-24 19:10:37 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-05-24 19:10:37 +0300 |
commit | bc6e734fec62a0c6772f23fed394a43f791afed6 (patch) | |
tree | d8a46cfb34624f3b93fb1c956be60acb7f9cbb8a /protocols | |
parent | 23f21ae625b736b640d9258b2660111e38e21145 (diff) |
Jabber: more fixes for #3521
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/JabberG/src/jabber_iqid.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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"))
|