diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2016-09-08 19:32:34 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2016-09-08 19:32:34 +0000 |
commit | 50a2be2affae63fc6ba4e7ebb22af563f1f8b867 (patch) | |
tree | e10faa225f535678551e65619ba6e841bb9baf79 /protocols/JabberG/src/jabber_proto.cpp | |
parent | 91a382b14d293137fa3fd90d3f5d315491df9716 (diff) |
protocol:
jabber:
omemo:
placeholder option
omemo notify capability
git-svn-id: http://svn.miranda-ng.org/main/trunk@17275 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_proto.cpp')
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp index b7422a4896..0ddbbee5fe 100755 --- a/protocols/JabberG/src/jabber_proto.cpp +++ b/protocols/JabberG/src/jabber_proto.cpp @@ -127,6 +127,21 @@ CJabberProto::CJabberProto(const char *aProtoName, const wchar_t *aUserName) : m_messageManager.FillPermanentHandlers();
m_adhocManager.FillDefaultNodes();
m_clientCapsManager.AddDefaultCaps();
+ if (m_options.UseOMEMO)
+ {
+ JabberCapsBits jcb = 0;
+ // set all bits occupied by g_JabberFeatCapPairs
+ for (int i = 0; g_JabberFeatCapPairs[i].szFeature; i++)
+ jcb |= g_JabberFeatCapPairs[i].jcbCap;
+
+ // set all bits already occupied by external plugins
+ for (int i = 0; i < m_lstJabberFeatCapPairsDynamic.getCount(); i++)
+ jcb |= m_lstJabberFeatCapPairsDynamic[i]->jcbCap;
+
+ jcb |= JABBER_CAPS_OMEMO_NOTIFY;
+
+ m_clientCapsManager.SetClientCaps(JABBER_CAPS_MIRANDA_NODE, szCoreVersion, jcb);
+ }
IconsInit();
InitPopups();
|