summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-04-27 09:16:38 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-04-27 09:20:33 +0300
commitf951527291179c6c056d911c041a538537273bcc (patch)
tree5fa7222becc33198c078ffec0eae0ddd47bf2af6 /protocols/JabberG/src/jabber_thread.cpp
parent7b1d58962694bd6dd1971d6eda673ddc0877f7c2 (diff)
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)
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_thread.cpp8
1 files changed, 6 insertions, 2 deletions
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;
+ }
}
}