From f5d751b3eb0292950bcc0ef2b884dfc368f35907 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 16 Dec 2025 19:15:15 +0200 Subject: [PATCH] chore(spaces): Rename `update_joined_spaces_if_needed` to `update_space_state_if_needed` --- crates/matrix-sdk-ui/src/spaces/mod.rs | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/crates/matrix-sdk-ui/src/spaces/mod.rs b/crates/matrix-sdk-ui/src/spaces/mod.rs index ea22fd799..f9e1c1927 100644 --- a/crates/matrix-sdk-ui/src/spaces/mod.rs +++ b/crates/matrix-sdk-ui/src/spaces/mod.rs @@ -170,7 +170,7 @@ impl SpaceService { } let (spaces, graph) = Self::build_space_state(&client).await; - Self::update_joined_spaces_if_needed( + Self::update_space_state_if_needed( Vector::from(spaces), graph, &space_state, @@ -186,7 +186,7 @@ impl SpaceService { // Make sure to also update the currently joined spaces for the initial values. let (spaces, graph) = Self::build_space_state(&self.client).await; - Self::update_joined_spaces_if_needed(Vector::from(spaces), graph, &self.space_state) + Self::update_space_state_if_needed(Vector::from(spaces), graph, &self.space_state) .await; } } @@ -205,12 +205,8 @@ impl SpaceService { pub async fn joined_spaces(&self) -> Vec { let (spaces, graph) = Self::build_space_state(&self.client).await; - Self::update_joined_spaces_if_needed( - Vector::from(spaces.clone()), - graph, - &self.space_state, - ) - .await; + Self::update_space_state_if_needed(Vector::from(spaces.clone()), graph, &self.space_state) + .await; spaces } @@ -374,7 +370,7 @@ impl SpaceService { Ok(handle) } - async fn update_joined_spaces_if_needed( + async fn update_space_state_if_needed( new_spaces: Vector, new_graph: SpaceGraph, space_state: &Arc>,