From 37cfadd7e9f593d288b4fb05edc5a44b30a411c6 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Sun, 15 Aug 2021 16:50:32 +0200 Subject: [PATCH] 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. --- lib/src/client.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/client.dart b/lib/src/client.dart index 4f5b5245..f0349e8c 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -185,6 +185,9 @@ class Client extends MatrixApi { EventTypes.Encryption, EventTypes.RoomCanonicalAlias, EventTypes.RoomTombstone, + EventTypes.spaceChild, + EventTypes.spaceParent, + EventTypes.RoomCreate, ]); roomPreviewLastEvents ??= {}; roomPreviewLastEvents.addAll([