From ffd3d740c54c869eec4403c6c3a2c941a68ee6d8 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Sat, 16 Feb 2019 00:47:24 +0100 Subject: [PATCH] state events are under state key --- src/matrix/room/summary.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/matrix/room/summary.js b/src/matrix/room/summary.js index bbb5ad28..c07c9cbc 100644 --- a/src/matrix/room/summary.js +++ b/src/matrix/room/summary.js @@ -74,8 +74,8 @@ export default class RoomSummary { this._membership = membership; changed = true; } - if (roomResponse.state_events) { - changed = roomResponse.state_events.events.reduce((changed, e) => { + if (roomResponse.state) { + changed = roomResponse.state.events.reduce((changed, e) => { return this._processEvent(e) || changed; }, changed); }