From f951527291179c6c056d911c041a538537273bcc Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 27 Apr 2017 09:16:38 +0300 Subject: jabber: omemo: work on 4.4, 4.5, 4.7 few fixes in session data backend implementations //looks like require to be reworked a bit more work with message encryption done (complete but does not work because of broken session ?) some work with message decryption is done (enough to test session cipher) --- protocols/JabberG/src/jabber_thread.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'protocols/JabberG/src/jabber_thread.cpp') diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index 0c2aa34d16..4b8bca9b1e 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1203,8 +1203,12 @@ void CJabberProto::OnProcessMessage(HXML node, ThreadData *info) if (!mir_wstrcmp(ptszXmlns, JABBER_FEAT_OMEMO)) { - OmemoHandleMessage(xNode); - continue; + LPCTSTR jid = xmlGetAttrValue(node, L"from"); + if (jid) + { + OmemoHandleMessage(xNode, HContactFromJID(jid)); + continue; + } } } -- cgit v1.2.3