mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
also persist state events in timeline
This commit is contained in:
parent
f7789d343a
commit
be8544aa48
@ -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 New Issue
Block a user