diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-04-02 16:16:36 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-04-02 16:21:26 +0300 |
commit | d353887c8cde702539d8d0f3d339c158498648ed (patch) | |
tree | 9ae3d71ee095da94637d57f77b4c396749dd2ebe /protocols/JabberG/src/jabber_util.cpp | |
parent | 85f860270ed1c622e3e15ee49e741512305a5fe2 (diff) |
jabber: omemo: working on 4.3
proper dynamic caps implementation for omemo caps/features and for miranda caps/features in general as required by xep-0115
removed my old attempt to implement dynamic omemo cap
fixed few bugs in OmemoHandleDeviceList
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_util.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 19de86f090..c29725c02f 100755 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -385,8 +385,10 @@ void CJabberProto::SendPresenceTo(int status, const wchar_t* to, HXML extra, con // XEP-0115:Entity Capabilities
if (m_options.AllowVersionRequests) {
+ wchar_t szVersionWithFeatHash[256];
+ mir_snwprintf(szVersionWithFeatHash, 255, L"%s %s", szCoreVersion, m_clientCapsManager.GetFeaturesCrc());
HXML c = p << XCHILDNS(L"c", JABBER_FEAT_ENTITY_CAPS) << XATTR(L"node", JABBER_CAPS_MIRANDA_NODE)
- << XATTR(L"ver", szCoreVersion);
+ << XATTR(L"ver", szVersionWithFeatHash);
LIST<wchar_t> arrExtCaps(5);
if (bSecureIM)
@@ -398,6 +400,9 @@ void CJabberProto::SendPresenceTo(int status, const wchar_t* to, HXML extra, con if (bNewGPG)
arrExtCaps.insert(JABBER_EXT_NEWGPG);
+ if(m_options.UseOMEMO)
+ arrExtCaps.insert(JABBER_EXT_OMEMO);
+
if (bPlatform)
arrExtCaps.insert(JABBER_EXT_PLATFORMX64);
else
|