Fix inverted condition in fetchHistoryBefore

This commit is contained in:
Simon Ser 2021-01-23 12:23:30 +01:00
parent 4d540d55ac
commit b0a3cd23e4

View File

@ -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 };
});
}