Skip to content

Commit 7d922bb

Browse files
committed
Rename key and value
1 parent 184bfeb commit 7d922bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

features/announcement/impl/src/main/kotlin/io/element/android/features/announcement/impl/store/DefaultAnnouncementStore.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import kotlinx.coroutines.flow.Flow
1818
import kotlinx.coroutines.flow.map
1919

2020
private val spaceAnnouncementKey = intPreferencesKey("spaceAnnouncement")
21-
private val showNewNotificationSoundBannerKey = intPreferencesKey("showNewNotificationSoundBanner")
21+
private val newNotificationSoundKey = intPreferencesKey("newNotificationSound")
2222

2323
@ContributesBinding(AppScope::class)
2424
@Inject
@@ -54,5 +54,5 @@ class DefaultAnnouncementStore(
5454

5555
private fun Announcement.toKey() = when (this) {
5656
Announcement.Space -> spaceAnnouncementKey
57-
Announcement.NewNotificationSound -> showNewNotificationSoundBannerKey
57+
Announcement.NewNotificationSound -> newNotificationSoundKey
5858
}

0 commit comments

Comments
 (0)