element-hq / element-x-android

Android Matrix messenger application using the Matrix Rust Sdk and Jetpack Compose
GNU Affero General Public License v3.0
1.08k stars 155 forks source link

Sync state #3478

Closed bmarty closed 1 month ago

bmarty commented 2 months ago

We stop the sync before login out here: https://github.com/element-hq/element-x-android/blob/main/libraries/matrix/impl/src/main/kotlin/io/element/android/libraries/matrix/impl/RustMatrixClient.kt#L466, but there are 2 problems:

We should probably let the MatrixClient expose a canStartSync flow to avoid the sync to be automatically started again by observeSyncStateAndNetworkStatus()

bmarty commented 1 month ago

We are not stopping the sync anymore, but instead we remove the client listener (done in #3480). So I guess we can close this issue.