Updated on 2026-08-14

This commit is contained in:
Tangem 2025-11-04 14:59:20 +03:00
parent d65126239d
commit 3aef6bf69c

View file

@ -135,13 +135,15 @@ internal class AskBiometryModel @Inject constructor(
params.modelCallbacks.onAllowed() params.modelCallbacks.onAllowed()
} }
private fun setBiometryLockForAllWallets() { private suspend fun setBiometryLockForAllWallets() {
modelScope.launch { userWalletsListRepository.userWalletsSync().forEach { userWallet ->
userWalletsListRepository.userWalletsSync().forEach { userWallet -> userWalletsListRepository.setLock(
userWalletsListRepository.setLock( userWalletId = userWallet.walletId,
userWalletId = userWallet.walletId, lockMethod = UserWalletsListRepository.LockMethod.Biometric,
lockMethod = UserWalletsListRepository.LockMethod.Biometric, changeUnsecured = false,
changeUnsecured = false, ).onLeft {
uiMessageSender.send(
SnackbarMessage(stringReference("Something went wrong. Please contact support: $it")),
) )
} }
} }