From 6e77ebb160a209bf0e5f22825b582e4eaeff4205 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 23 Sep 2020 18:06:16 +0200 Subject: [PATCH] undo obsolete changes --- src/matrix/Sync.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/Sync.js b/src/matrix/Sync.js index 1223e1a1..f78e437c 100644 --- a/src/matrix/Sync.js +++ b/src/matrix/Sync.js @@ -48,7 +48,7 @@ function timelineIsEmpty(roomResponse) { * // writes and calculates changes * const changes = await room.writeSync(roomResponse, isInitialSync, preparation, syncTxn); * // applies and emits changes once syncTxn is committed - * room.afterSync(changes, preparation); + * room.afterSync(changes); * if (room.needsAfterSyncCompleted(changes)) { * // can do network requests * await room.afterSyncCompleted(changes); @@ -170,7 +170,7 @@ export class Sync { const isInitialSync = !syncToken; syncToken = response.next_batch; const roomStates = this._parseRoomsResponse(response.rooms, isInitialSync); - await this._prepareRooms(roomStates, isInitialSync); + await this._prepareRooms(roomStates); let sessionChanges; const syncTxn = await this._openSyncTxn(); try {