From e6774a34da87ddc71f4ffe1fb0e74517d1e7c1eb Mon Sep 17 00:00:00 2001 From: Ivan Enderlin Date: Mon, 30 Jun 2025 15:54:07 +0200 Subject: [PATCH] feat(ui): Show the sync indicator when `RoomListService` is in `SettingUp` state. Since `RoomListService` uses a persistent `pos` for sliding sync, the `SyncIndicator` no longer shows its face except if the sliding sync session doesn't exist or has expired. This patch changes that by extending the `Show` from `Init` to `SettingUp`. --- crates/matrix-sdk-ui/src/room_list_service/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/matrix-sdk-ui/src/room_list_service/mod.rs b/crates/matrix-sdk-ui/src/room_list_service/mod.rs index b4a257ad9..74f0a0a27 100644 --- a/crates/matrix-sdk-ui/src/room_list_service/mod.rs +++ b/crates/matrix-sdk-ui/src/room_list_service/mod.rs @@ -328,11 +328,11 @@ impl RoomListService { loop { let (sync_indicator, yield_delay) = match current_state { - State::Init | State::Error { .. } => { + State::Init | State::SettingUp | State::Error { .. } => { (SyncIndicator::Show, delay_before_showing) } - State::SettingUp | State::Recovering | State::Running | State::Terminated { .. } => { + State::Recovering | State::Running | State::Terminated { .. } => { (SyncIndicator::Hide, delay_before_hiding) } };