From 7d922bbd03e53180f8b23483ec8f9d4bb99eaa5f Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Wed, 8 Oct 2025 10:26:15 +0200 Subject: [PATCH] Rename key and value --- .../announcement/impl/store/DefaultAnnouncementStore.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/features/announcement/impl/src/main/kotlin/io/element/android/features/announcement/impl/store/DefaultAnnouncementStore.kt b/features/announcement/impl/src/main/kotlin/io/element/android/features/announcement/impl/store/DefaultAnnouncementStore.kt index 452d18f6cf..7cdab9c82a 100644 --- a/features/announcement/impl/src/main/kotlin/io/element/android/features/announcement/impl/store/DefaultAnnouncementStore.kt +++ b/features/announcement/impl/src/main/kotlin/io/element/android/features/announcement/impl/store/DefaultAnnouncementStore.kt @@ -18,7 +18,7 @@ import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.map private val spaceAnnouncementKey = intPreferencesKey("spaceAnnouncement") -private val showNewNotificationSoundBannerKey = intPreferencesKey("showNewNotificationSoundBanner") +private val newNotificationSoundKey = intPreferencesKey("newNotificationSound") @ContributesBinding(AppScope::class) @Inject @@ -54,5 +54,5 @@ class DefaultAnnouncementStore( private fun Announcement.toKey() = when (this) { Announcement.Space -> spaceAnnouncementKey - Announcement.NewNotificationSound -> showNewNotificationSoundBannerKey + Announcement.NewNotificationSound -> newNotificationSoundKey }