diff --git a/src/matrix/room/room.js b/src/matrix/room/room.js index a16816fb..387046fb 100644 --- a/src/matrix/room/room.js +++ b/src/matrix/room/room.js @@ -13,7 +13,7 @@ export default class Room extends EventEmitter { this._hsApi = hsApi; this._summary = new RoomSummary(roomId); this._fragmentIdComparer = new FragmentIdComparer([]); - this._syncWriter = new SyncWriter({roomId, storage, fragmentIdComparer: this._fragmentIdComparer}); + this._syncWriter = new SyncWriter({roomId, fragmentIdComparer: this._fragmentIdComparer}); this._emitCollectionChange = emitCollectionChange; this._sendQueue = new SendQueue({roomId, storage, sendScheduler, pendingEvents}); this._timeline = null; diff --git a/src/matrix/room/timeline/persistence/SyncWriter.js b/src/matrix/room/timeline/persistence/SyncWriter.js index 6e5701f2..5ba0de3f 100644 --- a/src/matrix/room/timeline/persistence/SyncWriter.js +++ b/src/matrix/room/timeline/persistence/SyncWriter.js @@ -18,9 +18,8 @@ function deduplicateEvents(events) { } export default class SyncWriter { - constructor({roomId, storage, fragmentIdComparer}) { + constructor({roomId, fragmentIdComparer}) { this._roomId = roomId; - this._storage = storage; this._fragmentIdComparer = fragmentIdComparer; this._lastLiveKey = null; }