Fix the ordering in rageshakes (#12020)
* Fix the ordering in rageshakes Fixes https://github.com/vector-im/element-web/issues/26715 * Update src/rageshake/rageshake.ts Co-authored-by: Michael Telatynski <7t3chguy@gmail.com> --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
75500b606e
commit
db24a041aa
1 changed files with 2 additions and 1 deletions
|
@ -385,7 +385,8 @@ export class IndexedDBLogStore {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const newLines = cursor.value.lines;
|
const newLines = cursor.value.lines;
|
||||||
lines += newLines;
|
// The query returns log chunks in reverse time order, so prepend this new chunk to the buffer.
|
||||||
|
lines = newLines + lines;
|
||||||
sizeSoFar += newLines.length;
|
sizeSoFar += newLines.length;
|
||||||
|
|
||||||
// If we have now exceeded the size limit, stop.
|
// If we have now exceeded the size limit, stop.
|
||||||
|
|
Loading…
Reference in a new issue