Fixing a bug where the unread messages backlog requester wouldn't
authorMarcus Eggenberger <egs@quassel-irc.org>
Tue, 4 Aug 2009 22:44:15 +0000 (00:44 +0200)
committerMarcus Eggenberger <egs@quassel-irc.org>
Tue, 4 Aug 2009 22:44:15 +0000 (00:44 +0200)
fetch any backlog in certain cases. (Needs Core restart)

src/core/corebacklogmanager.cpp

index 39feb2a..9ad3560 100644 (file)
@@ -57,9 +57,9 @@ QVariantList CoreBacklogManager::requestBacklog(BufferId bufferId, MsgId first,
       last = oldestMessage;
     }
 
       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
     // 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();
       msgList = Core::requestMsgs(coreSession()->user(), bufferId, -1, last, additional);
       msgIter = msgList.constBegin();
       msgListEnd = msgList.constEnd();