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 6ad201b08c

View file

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