Updated on 2026-08-14
This commit is contained in:
commit
24ef1d4ed9
120 changed files with 6250 additions and 675 deletions
|
|
@ -93,6 +93,13 @@ fun UserWallet.isImported(): Boolean {
|
|||
}
|
||||
}
|
||||
|
||||
fun UserWallet.isBackedUpForAnalytics(): Boolean {
|
||||
return when (this) {
|
||||
is UserWallet.Cold -> scanResponse.card.backupStatus?.isActive == true
|
||||
is UserWallet.Hot -> backedUp
|
||||
}
|
||||
}
|
||||
|
||||
fun UserWallet.copy(name: String = this.name, walletId: UserWalletId = this.walletId): UserWallet = when (this) {
|
||||
is UserWallet.Cold -> this.copy(name = name, walletId = walletId)
|
||||
is UserWallet.Hot -> this.copy(name = name, walletId = walletId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue