Skip to content

Commit 5c3008d

Browse files
authored
[PM-21385] Use flatMapLatest for accountSyncStateFlow (#5231)
1 parent 54efc74 commit 5c3008d

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed
406 Bytes
Binary file not shown.
Binary file not shown.

authenticator/src/main/kotlin/com/bitwarden/authenticator/data/authenticator/repository/AuthenticatorRepositoryImpl.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import kotlinx.coroutines.flow.StateFlow
4040
import kotlinx.coroutines.flow.asSharedFlow
4141
import kotlinx.coroutines.flow.asStateFlow
4242
import kotlinx.coroutines.flow.firstOrNull
43-
import kotlinx.coroutines.flow.flatMapConcat
4443
import kotlinx.coroutines.flow.flatMapLatest
4544
import kotlinx.coroutines.flow.flowOf
4645
import kotlinx.coroutines.flow.launchIn
@@ -162,7 +161,7 @@ class AuthenticatorRepositoryImpl @Inject constructor(
162161
if (isFeatureEnabled) {
163162
authenticatorBridgeManager
164163
.accountSyncStateFlow
165-
.flatMapConcat { it.toSharedVerificationCodesStateFlow() }
164+
.flatMapLatest { it.toSharedVerificationCodesStateFlow() }
166165
} else {
167166
flowOf(SharedVerificationCodesState.FeatureNotEnabled)
168167
}

0 commit comments

Comments
 (0)