diff options
author | George Hazan <george.hazan@gmail.com> | 2025-01-10 15:28:20 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-01-10 15:28:20 +0300 |
commit | b58bd0a705dba9a32e4db1420e2d615c6ee6bd41 (patch) | |
tree | 5924c1355288a80575a7caf64849b1846ebec194 /protocols/SkypeWeb/src/skype_history_sync.cpp | |
parent | 9d98fd2380b5e8bc66ab599e896cee5ad2ec7d58 (diff) |
fixes #4830 (SkypeWeb: редактированное своё сообщение приходит как новое)
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());
|