Fixing a bug where the unread messages backlog requester wouldn't
[quassel.git] / src / core / corebacklogmanager.cpp
index 39feb2a..9ad3560 100644 (file)
@@ -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();