mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
No need to await here
This commit is contained in:
parent
5890fcdc9a
commit
f10217c591
@ -29,9 +29,7 @@ import {RetainedValue} from "../../../utils/RetainedValue";
|
||||
|
||||
export class Timeline extends RetainedValue {
|
||||
constructor({roomId, storage, closeCallback, fragmentIdComparer, pendingEvents, clock, powerLevelsObservable, hsApi}) {
|
||||
super(() => {
|
||||
this.dispose();
|
||||
});
|
||||
super(() => { this.dispose(); });
|
||||
this._roomId = roomId;
|
||||
this._storage = storage;
|
||||
this._closeCallback = closeCallback;
|
||||
@ -89,7 +87,7 @@ export class Timeline extends RetainedValue {
|
||||
const readerRequest = this._disposables.track(this._timelineReader.readFromEnd(20, txn, log));
|
||||
try {
|
||||
const entries = await readerRequest.complete();
|
||||
await this._loadContextEntriesWhereNeeded(entries);
|
||||
this._loadContextEntriesWhereNeeded(entries);
|
||||
this._setupEntries(entries);
|
||||
} finally {
|
||||
this._disposables.disposeTracked(readerRequest);
|
||||
|
Loading…
Reference in New Issue
Block a user