fix typo that broke the txn

This commit is contained in:
Bruno Windels 2020-08-20 15:23:29 +02:00
parent 514d1d9579
commit 830c300102

View file

@ -105,7 +105,7 @@ export class GapWriter {
// e.g. order is moving away from the `from` point.
let key = startKey;
for (let i = 0; i < events.length; ++i) {
const event = events[0];
const event = events[i];
key = key.nextKeyForDirection(direction);
const eventStorageEntry = createEventEntry(key, this._roomId, event);
const memberEvent = this._findMemberEvent(event.sender, state, events, i, direction);