fix: Add space states to important events

We need the space state events in the important events to be able to
differentiate rooms and spaces in the room list.
This commit is contained in:
Christian Pauly 2021-08-15 16:50:32 +02:00 committed by Krille Fear
parent 0e6ed1c51e
commit 37cfadd7e9
1 changed files with 3 additions and 0 deletions

View File

@ -185,6 +185,9 @@ class Client extends MatrixApi {
EventTypes.Encryption,
EventTypes.RoomCanonicalAlias,
EventTypes.RoomTombstone,
EventTypes.spaceChild,
EventTypes.spaceParent,
EventTypes.RoomCreate,
]);
roomPreviewLastEvents ??= {};
roomPreviewLastEvents.addAll([