mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 14:19:06 -04:00
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:
@@ -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)
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user