From bf4736ebe27a65bd89679be2c0d3a518f96b763f Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Wed, 5 Aug 2009 00:44:15 +0200 Subject: [PATCH] Fixing a bug where the unread messages backlog requester wouldn't fetch any backlog in certain cases. (Needs Core restart) --- src/core/corebacklogmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/corebacklogmanager.cpp b/src/core/corebacklogmanager.cpp index 39feb2ab..9ad35608 100644 --- a/src/core/corebacklogmanager.cpp +++ b/src/core/corebacklogmanager.cpp @@ -57,9 +57,9 @@ QVariantList CoreBacklogManager::requestBacklog(BufferId bufferId, MsgId first, last = oldestMessage; } - // only fetch additional messages if they they continue seemlessly + // only fetch additional messages if they continue seemlessly // that is, if the list of messages is not truncated by the limit - if(last.isValid() && last == oldestMessage) { + if(last == oldestMessage) { msgList = Core::requestMsgs(coreSession()->user(), bufferId, -1, last, additional); msgIter = msgList.constBegin(); msgListEnd = msgList.constEnd(); -- 2.20.1