Use LaunchedEffect and improve test
This commit is contained in:
parent
3170691a2f
commit
a8f5c8db39
2 changed files with 18 additions and 13 deletions
|
|
@ -71,7 +71,9 @@ class LoggedInPresenter @Inject constructor(
|
|||
}
|
||||
val verificationState by sessionVerificationService.sessionVerifiedStatus.collectAsState()
|
||||
val recoveryState by encryptionService.recoveryStateStateFlow.collectAsState()
|
||||
reportCryptoStatusToAnalytics(verificationState, recoveryState)
|
||||
LaunchedEffect(verificationState, recoveryState) {
|
||||
reportCryptoStatusToAnalytics(verificationState, recoveryState)
|
||||
}
|
||||
|
||||
return LoggedInState(
|
||||
showSyncSpinner = showSyncSpinner,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue