diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_history_sync.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_history_sync.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/protocols/SkypeWeb/src/skype_history_sync.cpp b/protocols/SkypeWeb/src/skype_history_sync.cpp index 48a6a56128..4861c621c3 100644 --- a/protocols/SkypeWeb/src/skype_history_sync.cpp +++ b/protocols/SkypeWeb/src/skype_history_sync.cpp @@ -42,14 +42,15 @@ void CSkypeProto::OnGetServerHistory(MHttpResponse *response, AsyncHttpRequest * auto &conv = root["messages"];
for (auto it = conv.rbegin(); it != conv.rend(); ++it) {
auto &message = *it;
- CMStringA szMessageId = message["id"].as_mstring();
- int64_t id = _atoi64(szMessageId);
+ CMStringA szId = message["id"].as_mstring();
+ int64_t id = _atoi64(szId);
if (id > lastMsgTime) {
bSetLastTime = true;
lastMsgTime = id;
}
int iUserType;
+ CMStringA szMessageId(getMessageId(message));
CMStringA szChatId = UrlToSkypeId(message["conversationLink"].as_mstring(), &iUserType);
CMStringA szFrom = UrlToSkypeId(message["from"].as_mstring());
|