summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-20 16:40:32 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-20 16:40:32 +0300
commit99fabf4f58d0a8dabbb8a8469fe3a81ef58b2797 (patch)
tree8583b0575efae194338879f333bb3c8dc6a0066e /protocols/JabberG/src/jabber_thread.cpp
parentd024fb380fff7333f297ce72a9ecd45e8634f4b6 (diff)
Jabber: more OMEMO fixes
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index 5ee69b908e..0f7816134c 100644
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -947,7 +947,7 @@ void CJabberProto::OnProcessPubsubEvent(const TiXmlElement *node)
if (!hContact)
return;
- if (m_bUseOMEMO) {
+ if (OmemoIsEnabled(hContact)) {
auto *itemsNode = XmlGetChildByTag(eventNode, "items", "node", JABBER_FEAT_OMEMO ".devicelist");
if (itemsNode) {
OmemoHandleDeviceList(from, itemsNode);
@@ -1278,7 +1278,7 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info)
return;
}
- if (m_bUseOMEMO && OmemoIsEnabled(hContact)) {
+ if (OmemoIsEnabled(hContact)) {
if (auto *encNode = XmlGetChildByTag(node, "encrypted", "xmlns", JABBER_FEAT_OMEMO)) {
if (!OmemoHandleMessage(encNode, from, msgTime))
OmemoPutMessageToIncommingQueue(encNode, from, msgTime);