diff options
author | George Hazan <ghazan@miranda.im> | 2020-05-07 21:00:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-05-07 21:00:49 +0300 |
commit | a864139555f85d02850a07bbf56f3abcf2946f1f (patch) | |
tree | 26a4f149a6127c4562860666ac4ebbe4af0c26f3 /protocols | |
parent | fb7fe67f58833ec63272ef3e780e15b26c3aac6d (diff) |
fixes #2399 (XEP-0280 support cleaning)
Diffstat (limited to 'protocols')
-rwxr-xr-x | protocols/JabberG/src/jabber_iqid.cpp | 6 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_proto.h | 2 | ||||
-rwxr-xr-x | protocols/JabberG/src/jabber_thread.cpp | 9 |
3 files changed, 4 insertions, 13 deletions
diff --git a/protocols/JabberG/src/jabber_iqid.cpp b/protocols/JabberG/src/jabber_iqid.cpp index 4447a88c77..8e1125b221 100755 --- a/protocols/JabberG/src/jabber_iqid.cpp +++ b/protocols/JabberG/src/jabber_iqid.cpp @@ -129,8 +129,10 @@ void CJabberProto::OnProcessLoginRq(ThreadData *info, DWORD rq) if (info->jabberServerCaps & JABBER_CAPS_ARCHIVE_AUTO)
EnableArchive(m_bEnableMsgArchive != 0);
- if (info->jabberServerCaps & JABBER_CAPS_CARBONS)
- EnableCarbons(m_bEnableCarbons != 0);
+ if (info->jabberServerCaps & JABBER_CAPS_CARBONS) {
+ // Server seems to support carbon copies, let's enable/disable them
+ m_ThreadInfo->send(XmlNodeIq("set", SerialNext()) << XCHILDNS((m_bEnableCarbons) ? "enable" : "disable", JABBER_FEAT_CARBONS));
+ }
if (m_bAutoJoinBookmarks) {
LIST<JABBER_LIST_ITEM> ll(10);
diff --git a/protocols/JabberG/src/jabber_proto.h b/protocols/JabberG/src/jabber_proto.h index 99a116768f..e9dc4d65eb 100755 --- a/protocols/JabberG/src/jabber_proto.h +++ b/protocols/JabberG/src/jabber_proto.h @@ -830,8 +830,6 @@ struct CJabberProto : public PROTO<CJabberProto>, public IJabberInterface bool ProcessCaptcha(const TiXmlElement *node, const TiXmlElement *parentNode, ThreadData *info);
- void EnableCarbons(bool bEnable);
-
//---- jabber_util.c -----------------------------------------------------------------
pResourceStatus ResourceInfoFromJID(const char *jid);
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp index df2a582355..b8c0206230 100755 --- a/protocols/JabberG/src/jabber_thread.cpp +++ b/protocols/JabberG/src/jabber_thread.cpp @@ -1924,15 +1924,6 @@ void CJabberProto::OnProcessRegIq(const TiXmlElement *node, ThreadData *info) }
/////////////////////////////////////////////////////////////////////////////////////////
-// Carbons -- this might need to go into its own module
-
-void CJabberProto::EnableCarbons(bool bEnable)
-{
- m_ThreadInfo->send(XmlNodeIq("set", SerialNext())
- << XCHILDNS((bEnable) ? "enable" : "disable", JABBER_FEAT_CARBONS));
-}
-
-/////////////////////////////////////////////////////////////////////////////////////////
// ThreadData constructor & destructor
ThreadData::ThreadData(CJabberProto *_pro, JABBER_CONN_DATA *param)
|