fix very long processing time in scroll handler

This commit is contained in:
or-else
2023-05-11 15:43:31 -07:00
parent f969c04c47
commit fd08d19939
9 changed files with 28 additions and 10 deletions
+3
View File
@@ -4461,6 +4461,9 @@ class Topic {
}
msgHasMoreMessages(min, max, newer) {
const gaps = [];
if (min >= max) {
return gaps;
}
let maxSeq = 0;
let gap;
this._messages.forEach((msg, prev) => {