summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_archive.cpp
diff options
context:
space:
mode:
authorsss <sss@dark-alexandr.net>2024-10-26 04:50:20 +0300
committersss <sss@dark-alexandr.net>2024-11-10 20:37:12 +0300
commit19e84f4401f82ef61e1b7db090c90a0b59046737 (patch)
tree14b298d1cf5cf11be36511ab26a64ed124b04a4f /protocols/JabberG/src/jabber_archive.cpp
parent5d7141972f7edc5f0818ea2040109f555e65fcdb (diff)
WIP: started xmpp message handling refactoring
Diffstat (limited to 'protocols/JabberG/src/jabber_archive.cpp')
-rw-r--r--protocols/JabberG/src/jabber_archive.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_archive.cpp b/protocols/JabberG/src/jabber_archive.cpp
index 54289bd9e0..019efcdc14 100644
--- a/protocols/JabberG/src/jabber_archive.cpp
+++ b/protocols/JabberG/src/jabber_archive.cpp
@@ -103,6 +103,14 @@ void CJabberProto::OnIqResultGetCollection(const TiXmlElement *iqNode, CJabberIq
for (auto *itemNode : TiXmlEnum(chatNode)) {
int from;
+
+ if (m_bUseOMEMO) {
+ if (auto* encNode = XmlGetChildByTag(itemNode, "encrypted", "xmlns", JABBER_FEAT_OMEMO)) {
+ OmemoHandleMessage(encNode, from, msgTime, bWasSent);
+ return; //we do not want any additional processing
+ }
+ }
+
const char *itemName = itemNode->Name();
if (!mir_strcmp(itemName, "to"))
from = DBEF_SENT;