diff --git a/lib/client.js b/lib/client.js index e15ca0a..332e1bd 100644 --- a/lib/client.js +++ b/lib/client.js @@ -401,7 +401,7 @@ export default class Client extends EventTarget { fetchHistoryBefore(target, before) { var params = ["BEFORE", target, "timestamp=" + before, CHATHISTORY_PAGE_SIZE]; return this.roundtripChatHistory(params).then((batch) => { - return { more: batch.messages.length < CHATHISTORY_PAGE_SIZE }; + return { more: batch.messages.length >= CHATHISTORY_PAGE_SIZE }; }); }