summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-09-17 20:50:46 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-09-17 20:50:46 +0300
commit6984b2e7d89d3281ba045c1e81c9f641520cdd8f (patch)
tree734a15f88db28d85a47f98b346d1e1fe73607b74 /protocols
parent490d85373fcdeb405d486a9d0dd36bd7be6615ad (diff)
fixes #4670 (SkypeWeb: при создании нового групчата прилетает куча неизвестных событий)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/SkypeWeb/src/skype_history_sync.cpp14
1 files 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;