summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--protocols/ICQ-WIM/src/poll.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/protocols/ICQ-WIM/src/poll.cpp b/protocols/ICQ-WIM/src/poll.cpp
index 7004af5716..c42bb10b93 100644
--- a/protocols/ICQ-WIM/src/poll.cpp
+++ b/protocols/ICQ-WIM/src/poll.cpp
@@ -163,14 +163,9 @@ void CIcqProto::ProcessHistData(const JSONNode &ev)
RetrieveUserHistory(hContact, lastMsgId);
}
else {
- // if the previous message is one that we already have, just parse the tail
- __int64 srvOlderId = _wtoi64(ev["tail"]["olderMsgId"].as_mstring());
- if (srvOlderId == lastMsgId) {
- for (auto &it : ev["tail"]["messages"])
- ParseMessage(hContact, lastMsgId, it, false);
- setId(hContact, DB_KEY_LASTMSGID, lastMsgId);
- }
- else RetrieveUserHistory(hContact, lastMsgId);
+ for (auto &it : ev["tail"]["messages"])
+ ParseMessage(hContact, lastMsgId, it, false);
+ setId(hContact, DB_KEY_LASTMSGID, lastMsgId);
}
// check remote read