From b0a3cd23e41e9e8f0c383da85e9896cf6e08b855 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 23 Jan 2021 12:23:30 +0100 Subject: [PATCH] Fix inverted condition in fetchHistoryBefore --- lib/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }; }); }