mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-19 06:04:31 -04:00
feat(ffi): Implement RoomList::is_syncing.
This commit is contained in:
@@ -104,6 +104,12 @@ impl RoomList {
|
||||
self.inner.stop_sync().map_err(Into::into)
|
||||
}
|
||||
|
||||
fn is_syncing(&self) -> bool {
|
||||
use matrix_sdk_ui::room_list::State;
|
||||
|
||||
matches!(self.inner.state().get(), State::SettingUp | State::Running)
|
||||
}
|
||||
|
||||
fn state(&self, listener: Box<dyn RoomListStateListener>) -> Arc<TaskHandle> {
|
||||
let state_stream = self.inner.state();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user