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-12-02 17:14:30 +0300
commit85425869852ee60b166563ca22771e47da58e1a7 (patch)
tree4dec60b82cb0e42b6d21a7683c7c22514af8e36c /protocols/JabberG/src/jabber_archive.cpp
parent51a49fa28205229010e9f4d29b7674889d97d8e2 (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;