From 547f009bb123e449d65348d77ea3b96ea34f6a91 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Sep 2024 18:12:37 +0300 Subject: =?UTF-8?q?fixes=20#4623=20(SkypeWeb:=20=D0=BF=D0=BE=D0=B4=D0=B4?= =?UTF-8?q?=D0=B5=D1=80=D0=B6=D0=B0=D1=82=D1=8C=20=D1=87=D0=B0=D1=82=20?= =?UTF-8?q?=D1=81=20"=D1=81=D0=B0=D0=BC=D0=B8=D0=BC=20=D1=81=D0=BE=D0=B1?= =?UTF-8?q?=D0=BE=D0=B9")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/SkypeWeb/src/skype_contacts.cpp | 12 +++++++++++- protocols/SkypeWeb/src/skype_proto.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'protocols/SkypeWeb/src') diff --git a/protocols/SkypeWeb/src/skype_contacts.cpp b/protocols/SkypeWeb/src/skype_contacts.cpp index e5e6038ba5..1e8bcfb3ed 100644 --- a/protocols/SkypeWeb/src/skype_contacts.cpp +++ b/protocols/SkypeWeb/src/skype_contacts.cpp @@ -151,10 +151,20 @@ void CSkypeProto::LoadContactList(MHttpResponse *response, AsyncHttpRequest*) continue; MCONTACT hContact = AddContact(szSkypeId, nullptr); + if (szSkypeId == "28:e7a9407c-2467-4a04-9546-70081f4ea80d") + m_hMyContact = hContact; std::string displayName = item["display_name"].as_string(); - if (!displayName.empty()) + if (!displayName.empty()) { + if (m_hMyContact == hContact) { + displayName = getMStringU("Nick"); + displayName += " "; + displayName += TranslateU("(You)"); + + setWord(hContact, "Status", ID_STATUS_ONLINE); + } setUString(hContact, "Nick", displayName.c_str()); + } if (item["authorized"].as_bool()) { delSetting(hContact, "Auth"); diff --git a/protocols/SkypeWeb/src/skype_proto.h b/protocols/SkypeWeb/src/skype_proto.h index ced2d6771b..de73e6be3d 100644 --- a/protocols/SkypeWeb/src/skype_proto.h +++ b/protocols/SkypeWeb/src/skype_proto.h @@ -124,6 +124,7 @@ public: int m_iPollingId; ptrA m_szApiToken, m_szToken, m_szId, m_szOwnSkypeId; CMStringA m_szSkypename, m_szMyname; + MCONTACT m_hMyContact; __forceinline CMStringA getId(MCONTACT hContact) { return getMStringA(hContact, SKYPE_SETTINGS_ID); -- cgit v1.2.3