From: Marcus Eggenberger Date: Tue, 4 Aug 2009 22:44:15 +0000 (+0200) Subject: Fixing a bug where the unread messages backlog requester wouldn't X-Git-Tag: 0.5-rc1~153 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=bf4736ebe27a65bd89679be2c0d3a518f96b763f;hp=4eba80194594b4f9e36afbf5b6a295c26510ed21 Fixing a bug where the unread messages backlog requester wouldn't fetch any backlog in certain cases. (Needs Core restart) --- 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();