mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
fix error on conduit with state field that is missing when empty
This commit is contained in:
parent
a64d49a8a2
commit
5d21ae3fb7
@ -119,7 +119,7 @@ export class SyncWriter {
|
|||||||
const changedMembers = [];
|
const changedMembers = [];
|
||||||
// persist state
|
// persist state
|
||||||
const {state} = roomResponse;
|
const {state} = roomResponse;
|
||||||
if (state.events) {
|
if (Array.isArray(state?.events)) {
|
||||||
for (const event of state.events) {
|
for (const event of state.events) {
|
||||||
const member = this._writeStateEvent(event, txn);
|
const member = this._writeStateEvent(event, txn);
|
||||||
if (member) {
|
if (member) {
|
||||||
|
Loading…
Reference in New Issue
Block a user