From d353887c8cde702539d8d0f3d339c158498648ed Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 2 Apr 2017 16:16:36 +0300 Subject: 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 --- protocols/JabberG/src/jabber_util.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'protocols/JabberG/src/jabber_util.cpp') 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 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 -- cgit v1.2.3