~emersion/gamja

b0a3cd23e41e9e8f0c383da85e9896cf6e08b855 — Simon Ser 3 months ago 4d540d5
Fix inverted condition in fetchHistoryBefore
1 files changed, 1 insertions(+), 1 deletions(-)

M lib/client.js
M lib/client.js => lib/client.js +1 -1
@@ 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 };
		});
	}