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`.
This commit is contained in:
Ivan Enderlin
2025-06-30 15:54:07 +02:00
parent 8ad52e34ea
commit e6774a34da

View File

@@ -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)
}
};