From 3aef6bf69c83a2de6835643207e5bd55e4aef193 Mon Sep 17 00:00:00 2001 From: Tangem Date: Tue, 4 Nov 2025 14:59:20 +0300 Subject: [PATCH] Updated on 2026-08-14 --- .../biometry/impl/model/AskBiometryModel.kt | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt b/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt index faf365c0f3..5acce0f6a4 100644 --- a/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt +++ b/features/biometry/impl/src/main/kotlin/com/tangem/features/biometry/impl/model/AskBiometryModel.kt @@ -135,13 +135,15 @@ internal class AskBiometryModel @Inject constructor( params.modelCallbacks.onAllowed() } - private fun setBiometryLockForAllWallets() { - modelScope.launch { - userWalletsListRepository.userWalletsSync().forEach { userWallet -> - userWalletsListRepository.setLock( - userWalletId = userWallet.walletId, - lockMethod = UserWalletsListRepository.LockMethod.Biometric, - changeUnsecured = false, + private suspend fun setBiometryLockForAllWallets() { + userWalletsListRepository.userWalletsSync().forEach { userWallet -> + userWalletsListRepository.setLock( + userWalletId = userWallet.walletId, + lockMethod = UserWalletsListRepository.LockMethod.Biometric, + changeUnsecured = false, + ).onLeft { + uiMessageSender.send( + SnackbarMessage(stringReference("Something went wrong. Please contact support: $it")), ) } }