mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
load 20 entries initially in timeline, otherwise it flickers a bit
This commit is contained in:
parent
898d32c6da
commit
381a12db20
@ -75,7 +75,7 @@ export class Timeline {
|
||||
// choose good amount here between showing messages initially and
|
||||
// not spending too much time decrypting messages before showing the timeline.
|
||||
// more messages should be loaded automatically until the viewport is full by the view if needed.
|
||||
const readerRequest = this._disposables.track(this._timelineReader.readFromEnd(5, txn, log));
|
||||
const readerRequest = this._disposables.track(this._timelineReader.readFromEnd(20, txn, log));
|
||||
try {
|
||||
const entries = await readerRequest.complete();
|
||||
this._setupEntries(entries);
|
||||
|
Loading…
Reference in New Issue
Block a user