From 2eab7cf818023feaeea832f6b593d6dd308d44d4 Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Wed, 1 Oct 2025 16:42:16 +0200 Subject: [PATCH] fix(ui): `RoomListItem` refreshes its `cache_is_space`. --- crates/matrix-sdk-ui/src/room_list_service/room_list.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/matrix-sdk-ui/src/room_list_service/room_list.rs b/crates/matrix-sdk-ui/src/room_list_service/room_list.rs index b101e020e..391d42116 100644 --- a/crates/matrix-sdk-ui/src/room_list_service/room_list.rs +++ b/crates/matrix-sdk-ui/src/room_list_service/room_list.rs @@ -431,7 +431,7 @@ impl RoomListItem { self.cached_latest_event_is_local = self.inner.new_latest_event_is_local(); self.cached_recency_stamp = self.inner.recency_stamp(); self.cached_display_name = self.inner.cached_display_name().map(|name| name.to_string()); - // no need to refresh `Self::is_space`. + self.cached_is_space = self.inner.is_space(); self.cached_state = self.inner.state(); } }