Merge pull request #987 from vector-im/feature/fga/sync_lifecycle

Sync: move sync lifecycle to onStart/onStop instead of onResume/onPause
This commit is contained in:
ganfra 2023-07-27 17:04:40 +02:00 committed by GitHub
commit cd5b9ea3f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,12 +138,12 @@ class LoggedInFlowNode @AssistedInject constructor(
backstack.push(NavTarget.Ftue)
}
},
onResume = {
onStart = {
lifecycleScope.launch {
syncService.startSync()
}
},
onPause = {
onStop = {
syncService.stopSync()
},
onDestroy = {