summaryrefslogtreecommitdiff
path: root/protocols/Facebook/src/proto.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2021-04-30 17:52:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2021-04-30 17:52:29 +0300
commit9f00802dfbad293235fc44536069c64b236fdc50 (patch)
treed6d337bdc9334c5516e30f83d5edf9f742be2f35 /protocols/Facebook/src/proto.h
parent84f2722e07a23656bdc8d1a7f4040e86450fe91d (diff)
fixes #2859 (Импорт: дублируются контакты ICQ и FaceBook)
Diffstat (limited to 'protocols/Facebook/src/proto.h')
-rw-r--r--protocols/Facebook/src/proto.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Facebook/src/proto.h b/protocols/Facebook/src/proto.h
index a1beb850e3..e2dffa6513 100644
--- a/protocols/Facebook/src/proto.h
+++ b/protocols/Facebook/src/proto.h
@@ -466,11 +466,10 @@ class FacebookProto : public PROTO<FacebookProto>
OBJLIST<COwnMessage> arOwnMessages;
bool ExtractOwnMessage(__int64 msgId, COwnMessage &res);
+ mir_cs m_csUsers;
OBJLIST<FacebookUser> m_users;
- FacebookUser *FindUser(__int64 id)
- {
- return m_users.find((FacebookUser *)&id);
- }
+
+ FacebookUser* FindUser(__int64 id);
FacebookUser *UserFromJson(const JSONNode &root, CMStringW &wszId, bool &bIsChat);
@@ -521,6 +520,7 @@ public:
////////////////////////////////////////////////////////////////////////////////////////
// PROTO_INTERFACE
+ void OnContactAdded(MCONTACT) override;
void OnModulesLoaded() override;
void OnShutdown() override;