Updated on 2026-08-14
This commit is contained in:
parent
b94e3f814b
commit
5e10c943a0
7 changed files with 52 additions and 21 deletions
|
|
@ -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 ->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue