diff options
author | George Hazan <george.hazan@gmail.com> | 2023-12-29 17:38:01 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-12-29 17:38:01 +0300 |
commit | b59bccc0706129977c4f599a57a8706b5d9cd7be (patch) | |
tree | 044d07a709b20f76c207c3ad557bb4abd5c2d1e2 | |
parent | 9536e0bb47b12ea2ae01ab070dd9f6aa5bb360c2 (diff) |
fixes #4084 (ICQ: реализовать показ информации об Избранном)
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index b2d3f66b2e..fc16ed5278 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -403,8 +403,10 @@ MCONTACT CIcqProto::ParseBuddyInfo(const JSONNode &buddy, MCONTACT hContact, boo const JSONNode &profile = buddy["profile"];
if (profile) {
Json2string(hContact, profile, "friendlyName", DB_KEY_ICQNICK, bIsPartial);
- Json2string(hContact, profile, "firstName", "FirstName", bIsPartial);
- Json2string(hContact, profile, "lastName", "LastName", bIsPartial);
+ if (hContact != m_hFavContact) {
+ 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"));
@@ -724,8 +726,10 @@ void CIcqProto::OnGePresence(NETLIBHTTPREQUEST *pReply, AsyncHttpRequest *pReq) return;
auto &data = root.data();
- for (auto &it : data["users"])
+ for (auto &it : data["users"]) {
+ ParseBuddyInfo(it, pReq->hContact, true);
ProcessOnline(it, pReq->hContact);
+ }
}
void CIcqProto::RetrievePresence(MCONTACT hContact)
|