forked from mystiq/hydrogen-web
also persist state events in timeline
This commit is contained in:
parent
f7789d343a
commit
be8544aa48
1 changed files with 10 additions and 0 deletions
|
@ -51,5 +51,15 @@ export default class RoomPersister {
|
||||||
txn.roomState.setStateEvent(this._roomId, event)
|
txn.roomState.setStateEvent(this._roomId, event)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (timeline.events) {
|
||||||
|
if (state.events) {
|
||||||
|
for (const event of timeline.events) {
|
||||||
|
if (typeof event.state_key === "string") {
|
||||||
|
txn.roomState.setStateEvent(this._roomId, event);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue