diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-10 22:28:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-10 22:28:42 +0300 |
commit | 7b6735c0e81cedc8146dfae510f14a5cf5a26528 (patch) | |
tree | 7404ac5685b51e1cf6c396b4396562c6989a3419 /protocols/JabberG/src | |
parent | b4fd2741bf86f142987309a45f27378fc0c5f885 (diff) |
Jabber: fix for reading OMEMO encrypted messages
Diffstat (limited to 'protocols/JabberG/src')
-rwxr-xr-x | protocols/JabberG/src/jabber_thread.cpp | 11 |
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
}
}
|