storage method takes EventKey actually

This commit is contained in:
Bruno Windels 2020-09-08 10:51:28 +02:00
parent 3e100ff5ec
commit 4cf3b3569d

View File

@ -64,7 +64,7 @@ export class Room extends EventEmitter {
const {data: eventKey} = retryEntry; const {data: eventKey} = retryEntry;
let entry = this._timeline?.findEntry(eventKey); let entry = this._timeline?.findEntry(eventKey);
if (!entry) { 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) { if (storageEntry) {
entry = new EventEntry(storageEntry, this._fragmentIdComparer); entry = new EventEntry(storageEntry, this._fragmentIdComparer);
} }