summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;