summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-03-10 22:28:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-03-10 22:28:42 +0300
commit7b6735c0e81cedc8146dfae510f14a5cf5a26528 (patch)
tree7404ac5685b51e1cf6c396b4396562c6989a3419 /protocols/JabberG/src
parentb4fd2741bf86f142987309a45f27378fc0c5f885 (diff)
Jabber: fix for reading OMEMO encrypted messages
Diffstat (limited to 'protocols/JabberG/src')
-rwxr-xr-xprotocols/JabberG/src/jabber_thread.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index 1682a03421..d1e00a7be4 100755
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -1272,13 +1272,10 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info)
for (auto *xNode : TiXmlEnum(node)) {
if (m_bUseOMEMO) {
if (!mir_strcmp(xNode->Name(), "encrypted") && xNode->Attribute("xmlns", JABBER_FEAT_OMEMO)) {
- const char *jid = XmlGetAttr(xNode, "from");
- if (jid) {
- if (!OmemoHandleMessage(xNode, jid, msgTime))
- OmemoPutMessageToIncommingQueue(xNode, jid, msgTime);
- debugLogA("OMEMO processing finished, returning");
- return; //we do not want any additional processing
- }
+ if (!OmemoHandleMessage(xNode, from, msgTime))
+ OmemoPutMessageToIncommingQueue(xNode, from, msgTime);
+ debugLogA("OMEMO processing finished, returning");
+ return; //we do not want any additional processing
}
}