diff options
author | George Hazan <george.hazan@gmail.com> | 2023-10-29 12:17:04 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-10-29 12:17:04 +0300 |
commit | 9f627b4aebf1724aa223d4f6061a44be46544b50 (patch) | |
tree | f20657be8ce3a32890fb1ce095fad8675505f0de /protocols/JabberG/src/jabber_events.cpp | |
parent | 5df3dd0b63c67b8139ff1c7e0d0c039db1a64b6d (diff) |
fixes #3714 (Jabber: авторизованный, но не добавленный в ростер контакт сам собой добавляется в ростер)
Diffstat (limited to 'protocols/JabberG/src/jabber_events.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_events.cpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/protocols/JabberG/src/jabber_events.cpp b/protocols/JabberG/src/jabber_events.cpp index ed4976e769..2dfc7bbf84 100644 --- a/protocols/JabberG/src/jabber_events.cpp +++ b/protocols/JabberG/src/jabber_events.cpp @@ -143,34 +143,6 @@ void __cdecl CJabberProto::OnRenameContact(DBCONTACTWRITESETTING *cws, MCONTACT }
}
-void __cdecl CJabberProto::OnAddContactForever(MCONTACT hContact)
-{
- ptrA jid(getUStringA(hContact, "jid"));
- if (jid == nullptr)
- return;
-
- debugLogA("Add %s permanently to list", jid.get());
- ptrA nick(db_get_utfa(hContact, "CList", "MyHandle"));
- if (nick == nullptr)
- nick = getUStringA(hContact, "Nick");
- if (nick == nullptr)
- nick = JabberNickFromJID(jid);
- if (nick == nullptr)
- return;
-
- AddContactToRoster(jid, nick, T2Utf(ptrW(Clist_GetGroup(hContact))));
-
- XmlNode xPresence("presence"); xPresence << XATTR("to", jid) << XATTR("type", "subscribe");
- ptrA myNick(getUStringA("Nick"));
- if (myNick != nullptr && !m_bIgnoreRoster)
- xPresence << XCHILD("nick", myNick) << XATTR("xmlns", JABBER_FEAT_NICK);
- m_ThreadInfo->send(xPresence);
-
- SendGetVcard(hContact);
-
- Contact::Hide(hContact, false);
-}
-
int __cdecl CJabberProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam)
{
if (hContact == 0 || !m_bJabberOnline)
@@ -184,10 +156,6 @@ int __cdecl CJabberProto::OnDbSettingChanged(WPARAM hContact, LPARAM lParam) OnRenameGroup(cws, hContact);
else if (!strcmp(cws->szSetting, "MyHandle"))
OnRenameContact(cws, hContact);
- else if (!strcmp(cws->szSetting, "NotOnList")) {
- if (cws->value.type == DBVT_DELETED || (cws->value.type == DBVT_BYTE && cws->value.bVal == 0))
- OnAddContactForever(hContact);
- }
return 0;
}
|