Ensure that the code is not run twice.
This commit is contained in:
parent
acde970f01
commit
101a6e6ff2
1 changed files with 2 additions and 4 deletions
|
|
@ -53,11 +53,9 @@ class LoggedInPresenter @Inject constructor(
|
|||
sessionVerificationService.sessionVerifiedStatus.map { it == SessionVerifiedStatus.Verified }
|
||||
}.collectAsState(initial = false)
|
||||
|
||||
LaunchedEffect(isVerified) {
|
||||
if (isVerified) {
|
||||
if (isVerified) {
|
||||
LaunchedEffect(Unit) {
|
||||
ensurePusherIsRegistered()
|
||||
} else {
|
||||
Timber.w("Session is not verified, not registering pusher")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue