mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +00:00
Rename key and value
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ import kotlinx.coroutines.flow.Flow
|
|||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
|
|
||||||
private val spaceAnnouncementKey = intPreferencesKey("spaceAnnouncement")
|
private val spaceAnnouncementKey = intPreferencesKey("spaceAnnouncement")
|
||||||
private val showNewNotificationSoundBannerKey = intPreferencesKey("showNewNotificationSoundBanner")
|
private val newNotificationSoundKey = intPreferencesKey("newNotificationSound")
|
||||||
|
|
||||||
@ContributesBinding(AppScope::class)
|
@ContributesBinding(AppScope::class)
|
||||||
@Inject
|
@Inject
|
||||||
@@ -54,5 +54,5 @@ class DefaultAnnouncementStore(
|
|||||||
|
|
||||||
private fun Announcement.toKey() = when (this) {
|
private fun Announcement.toKey() = when (this) {
|
||||||
Announcement.Space -> spaceAnnouncementKey
|
Announcement.Space -> spaceAnnouncementKey
|
||||||
Announcement.NewNotificationSound -> showNewNotificationSoundBannerKey
|
Announcement.NewNotificationSound -> newNotificationSoundKey
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user