From 4cf3b3569d09da189ffca43bd87a3dca4a4e4332 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Tue, 8 Sep 2020 10:51:28 +0200 Subject: [PATCH] storage method takes EventKey actually --- src/matrix/room/Room.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/Room.js b/src/matrix/room/Room.js index a26be995..3942f1c5 100644 --- a/src/matrix/room/Room.js +++ b/src/matrix/room/Room.js @@ -64,7 +64,7 @@ export class Room extends EventEmitter { const {data: eventKey} = retryEntry; let entry = this._timeline?.findEntry(eventKey); if (!entry) { - const storageEntry = await txn.timelineEvents.get(this._roomId, eventKey.fragmentId, eventKey.entryIndex); + const storageEntry = await txn.timelineEvents.get(this._roomId, eventKey); if (storageEntry) { entry = new EventEntry(storageEntry, this._fragmentIdComparer); }