Fix inverted condition in fetchHistoryBefore
This commit is contained in:
@@ -401,7 +401,7 @@ export default class Client extends EventTarget {
|
|||||||
fetchHistoryBefore(target, before) {
|
fetchHistoryBefore(target, before) {
|
||||||
var params = ["BEFORE", target, "timestamp=" + before, CHATHISTORY_PAGE_SIZE];
|
var params = ["BEFORE", target, "timestamp=" + before, CHATHISTORY_PAGE_SIZE];
|
||||||
return this.roundtripChatHistory(params).then((batch) => {
|
return this.roundtripChatHistory(params).then((batch) => {
|
||||||
return { more: batch.messages.length < CHATHISTORY_PAGE_SIZE };
|
return { more: batch.messages.length >= CHATHISTORY_PAGE_SIZE };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user