From 7091bdb006d885884e2151da398fb2819e7ed49a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 29 Dec 2023 17:39:58 +0300 Subject: more for #4084 --- protocols/ICQ-WIM/src/server.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index fc16ed5278..dc63d31aa2 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -403,10 +403,8 @@ MCONTACT CIcqProto::ParseBuddyInfo(const JSONNode &buddy, MCONTACT hContact, boo const JSONNode &profile = buddy["profile"]; if (profile) { Json2string(hContact, profile, "friendlyName", DB_KEY_ICQNICK, bIsPartial); - if (hContact != m_hFavContact) { - Json2string(hContact, profile, "firstName", "FirstName", bIsPartial); - Json2string(hContact, profile, "lastName", "LastName", bIsPartial); - } + Json2string(hContact, profile, "firstName", "FirstName", bIsPartial); + Json2string(hContact, profile, "lastName", "LastName", bIsPartial); Json2string(hContact, profile, "aboutMe", DB_KEY_ABOUT, bIsPartial); ptrW wszNick(getWStringA(hContact, "Nick")); @@ -897,6 +895,7 @@ void CIcqProto::SetOwnId(const CMStringW &wszId) } setWString(pUser->m_hContact, "Nick", TranslateT("Favorites")); + db_set_ws(pUser->m_hContact, "CList", "MyHandle", TranslateT("Favorites")); if (m_hFavContact == INVALID_CONTACT_ID) { m_hFavContact = pUser->m_hContact; -- cgit v1.2.3