this is shorter

This commit is contained in:
Bruno Windels 2020-09-14 16:33:30 +02:00
parent 3325f12092
commit bce46daa9c

View file

@ -68,9 +68,8 @@ export class Room extends EventEmitter {
}
const decryptRequest = this._decryptEntries(DecryptionSource.Retry, retryEntries, txn);
await decryptRequest.complete();
if (this._timeline) {
// only adds if already present
this._timeline.replaceEntries(retryEntries);
this._timeline?.replaceEntries(retryEntries);
}
// pass decryptedEntries to roomSummary
}