diff options
-rw-r--r-- | protocols/Facebook/src/proto.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Facebook/src/proto.cpp b/protocols/Facebook/src/proto.cpp index b385a4e379..993e85a0f6 100644 --- a/protocols/Facebook/src/proto.cpp +++ b/protocols/Facebook/src/proto.cpp @@ -157,6 +157,9 @@ MCONTACT FacebookProto::AddToList(int, PROTOSEARCHRESULT *psr) if (!mir_wstrlen(psr->id.w)) return 0; + if (auto *pUser = FindUser(_wtoi64(psr->id.w))) + return pUser->hContact; + MCONTACT hContact = db_add_contact(); Proto_AddToContact(hContact, m_szModuleName); setWString(hContact, DBKEY_ID, psr->id.w); |