diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-17 21:51:36 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-17 21:51:36 +0300 |
commit | 884b95d2bb811888048016afa959e46dceb93fba (patch) | |
tree | 8eff92eb34f7a975edc86237f3a911e3a28af9e3 /protocols | |
parent | 19696f68061ce3d0996ec276bd65f286b7940260 (diff) |
fixes #1770 (old unused junk is read from server on sync)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index a1e847e998..2a2b4bb986 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -759,14 +759,13 @@ void CIcqProto::ProcessHistData(const JSONNode &ev) __int64 lastMsgId = getId(hContact, DB_KEY_LASTMSGID); __int64 srvLastId = _wtoi64(ev["lastMsgId"].as_mstring()); - __int64 srvUnreadId = _wtoi64(ev["yours"]["lastRead"].as_mstring()); // on first start we don't load history not to create dups if (lastMsgId == 0) setId(hContact, DB_KEY_LASTMSGID, srvLastId); // or load missing messages if any else if (ev["unreadCnt"].as_int() > 0) - RetrieveUserHistory(hContact, min(srvUnreadId, lastMsgId), srvLastId); + RetrieveUserHistory(hContact, lastMsgId, srvLastId); // check remote read if (g_bMessageState) { |