element-x-ada/libraries/matrix
Jorge Martin Espinosa 3c87fb05b2
Create SyncOrchestrator (#4176)
* Create `SyncOrchestrator` to centralise the sync start/stop flow through the whole app: the decision is based on several inputs: sync state, network available, app in foreground, app in call, app needing to sync an event for a notification.

* Make network monitor return network connectivity status, not internet connectivity

* Don't stop the `SyncService` when network connection is lost, let it fail instead. This prevents an issue when using the offline mode of the SDK, which made the wrong UI states to be shown when the `SyncState` is `Idle` (that is, after the service being manually stopped).

* Rename `NetworkStatus.Online/Offline` to `Connected/Disconnected` so they're not easily mistaken with internet connectivity instead
2025-02-06 16:36:57 +01:00
..
api Do not rely on RoomAlias constructor to validate the Room alias, since there is no validation in release mode. 2025-02-05 18:05:10 +01:00
impl Create SyncOrchestrator (#4176) 2025-02-06 16:36:57 +01:00
test Enable Offline mode of the SyncService, so that the sync starts automatically when the network is back. 2025-02-03 18:27:32 +01:00