mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +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
|
// 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 New Issue
Block a user