fix refactor error

This commit is contained in:
Bruno Windels 2021-08-27 20:05:53 +02:00
parent 6a6762f036
commit ddb6753f8d

View file

@ -236,7 +236,7 @@ export class SyncWriter {
}
const memberSync = this._memberWriter.prepareMemberSync(stateEvents, timelineEvents, hasFetchedMembers);
if (stateEvents) {
await this._writeStateEvents(roomResponse, txn, log);
await this._writeStateEvents(stateEvents, txn, log);
}
const {currentKey, entries, updatedEntries} =
await this._writeTimeline(timelineEvents, timeline, memberSync, this._lastLiveKey, txn, log);