Updated on 2026-08-14

This commit is contained in:
Tangem 2025-05-26 16:04:26 +05:00
parent 1485eddbc7
commit 8f9b356307
27 changed files with 326 additions and 115 deletions

View file

@ -238,6 +238,10 @@ internal class DefaultWalletsRepository(
}
}
override fun notificationsEnabledStatus(userWalletId: UserWalletId): Flow<Boolean> = appPreferencesStore
.getObjectMap<Boolean>(PreferencesKeys.NOTIFICATIONS_ENABLED_STATES_KEY)
.map { it[userWalletId.stringValue] == true }
override suspend fun isNotificationsEnabled(userWalletId: UserWalletId): Boolean =
appPreferencesStore.getObjectMap<Boolean>(PreferencesKeys.NOTIFICATIONS_ENABLED_STATES_KEY)
.map { it[userWalletId.stringValue] }