forked from mystiq/hydrogen-web
load 20 entries initially in timeline, otherwise it flickers a bit
This commit is contained in:
parent
898d32c6da
commit
381a12db20
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export class Timeline {
|
||||||
// choose good amount here between showing messages initially and
|
// choose good amount here between showing messages initially and
|
||||||
// not spending too much time decrypting messages before showing the timeline.
|
// 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.
|
// 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 {
|
try {
|
||||||
const entries = await readerRequest.complete();
|
const entries = await readerRequest.complete();
|
||||||
this._setupEntries(entries);
|
this._setupEntries(entries);
|
||||||
|
|
Loading…
Reference in a new issue