From 6984b2e7d89d3281ba045c1e81c9f641520cdd8f Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 17 Sep 2024 20:50:46 +0300 Subject: =?UTF-8?q?fixes=20#4670=20(SkypeWeb:=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B8=20=D0=BD=D0=BE?= =?UTF-8?q?=D0=B2=D0=BE=D0=B3=D0=BE=20=D0=B3=D1=80=D1=83=D0=BF=D1=87=D0=B0?= =?UTF-8?q?=D1=82=D0=B0=20=D0=BF=D1=80=D0=B8=D0=BB=D0=B5=D1=82=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20=D0=BA=D1=83=D1=87=D0=B0=20=D0=BD=D0=B5=D0=B8=D0=B7?= =?UTF-8?q?=D0=B2=D0=B5=D1=81=D1=82=D0=BD=D1=8B=D1=85=20=D1=81=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=82=D0=B8=D0=B9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/SkypeWeb/src/skype_history_sync.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index 577c1433e9..99a1cb6c17 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -43,6 +43,11 @@ void CSkypeProto::OnGetServerHistory(MHttpResponse *response, AsyncHttpRequest * for (auto it = conv.rbegin(); it != conv.rend(); ++it) { auto &message = *it; CMStringA szMessageId = message["id"].as_mstring(); + int64_t id = _atoi64(szMessageId); + if (id > lastMsgTime) { + bSetLastTime = true; + lastMsgTime = id; + } int iUserType; CMStringA szChatId = UrlToSkypeId(message["conversationLink"].as_mstring(), &iUserType); @@ -55,13 +60,12 @@ void CSkypeProto::OnGetServerHistory(MHttpResponse *response, AsyncHttpRequest * dbei.szModule = m_szModuleName; dbei.timestamp = (bUseLocalTime) ? iLocalTime : IsoToUnixTime(message["composetime"].as_string()); dbei.szId = szMessageId; - if (iUserType == 19) + if (iUserType == 19) { dbei.szUserId = szFrom; - int64_t id = _atoi64(szMessageId); - if (id > lastMsgTime) { - bSetLastTime = true; - lastMsgTime = id; + CMStringA szType(message["messagetype"].as_mstring()); + if (szType.Left(15) == "ThreadActivity/") + continue; } dbei.flags = DBEF_UTF; -- cgit v1.2.3