summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-06-04 21:45:36 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-06-04 21:45:39 +0300
commitef8f9c7b1a42e314f41b214d14169f11d1458d44 (patch)
treef89ea84e9ffa66e582113f1d72ec66607a51e365 /protocols/JabberG/src/jabber_thread.cpp
parentb5709b28556dbaf3b25f415cb2508c5acd797e5c (diff)
Jabber: more OMEMO fixes
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index 5aebee770e..6ae5341c88 100644
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -1281,11 +1281,9 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info)
return;
}
- if (OmemoIsEnabled(hContact)) {
+ if (m_bUseOMEMO) {
if (auto *encNode = XmlGetChildByTag(node, "encrypted", "xmlns", JABBER_FEAT_OMEMO)) {
- if (!OmemoHandleMessage(encNode, from, msgTime, bWasSent))
- OmemoPutMessageToIncommingQueue(encNode, from, msgTime);
- debugLogA("OMEMO processing finished, returning");
+ OmemoHandleMessage(encNode, from, msgTime, bWasSent);
return; //we do not want any additional processing
}
}