Updated on 2026-08-14

This commit is contained in:
Tangem 2026-02-20 14:48:19 +05:00
parent b94e3f814b
commit 5e10c943a0
7 changed files with 52 additions and 21 deletions

View file

@ -53,10 +53,9 @@ internal class DefaultHotWalletRepository(
}
}
override suspend fun getUpgradeBannerClosureTimestamp(userWalletId: UserWalletId): Long? {
return appPreferencesStore
.getObjectMapSync<Long>(PreferencesKeys.UPGRADE_BANNER_CLOSURE_TIMESTAMP_KEY)[userWalletId.stringValue]
}
override fun upgradeBannerClosureTimestamp(userWalletId: UserWalletId): Flow<Long?> = appPreferencesStore
.getObjectMap<Long>(PreferencesKeys.UPGRADE_BANNER_CLOSURE_TIMESTAMP_KEY)
.map { it[userWalletId.stringValue] }
override suspend fun setUpgradeBannerClosureTimestamp(userWalletId: UserWalletId, timestamp: Long?) {
appPreferencesStore.editData { mutablePreferences ->