Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-05 10:46:19 +03:00
parent bced1ca48d
commit 1abd6b9b2e
2 changed files with 12 additions and 1 deletions

View file

@ -79,6 +79,8 @@ internal interface WalletWarningsClickIntents {
fun onSupportClick()
fun onBackupErrorClick()
fun onNoteMigrationButtonClick(url: String)
fun onSeedPhraseNotificationConfirm()
@ -332,6 +334,15 @@ internal class WalletWarningsClickIntentsImplementor @Inject constructor(
}
}
override fun onBackupErrorClick() {
val userWallet = getSelectedUserWallet() ?: return
modelScope.launch {
val metaInfo = getWalletMetaInfoUseCase(userWallet.walletId).getOrNull() ?: return@launch
sendFeedbackEmailUseCase(type = FeedbackEmailType.BackupProblem(walletMetaInfo = metaInfo))
}
}
override fun onNoteMigrationButtonClick(url: String) {
analyticsEventHandler.send(MainScreen.NotePromoButton())
modelScope.launch(dispatchers.main) {

View file

@ -182,7 +182,7 @@ internal class GetMultiWalletWarningsFactory @Inject constructor(
val cardTypesResolver = userWallet.scanResponse.cardTypesResolver
addIf(
element = WalletNotification.Critical.BackupError { clickIntents.onSupportClick() },
element = WalletNotification.Critical.BackupError { clickIntents.onBackupErrorClick() },
condition = !backupValidator.isValidBackupStatus(userWallet.scanResponse.card) || userWallet.hasBackupError,
)