From ddb6753f8d7eed6f10948aa2ddd5a60708692e67 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 27 Aug 2021 20:05:53 +0200 Subject: [PATCH] fix refactor error --- src/matrix/room/timeline/persistence/SyncWriter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/persistence/SyncWriter.js b/src/matrix/room/timeline/persistence/SyncWriter.js index f6c167e8..240feb76 100644 --- a/src/matrix/room/timeline/persistence/SyncWriter.js +++ b/src/matrix/room/timeline/persistence/SyncWriter.js @@ -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);