mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Restore previous key.
This commit is contained in:
+2
-1
@@ -17,6 +17,7 @@ import io.element.android.libraries.preferences.api.store.PreferenceDataStoreFac
|
|||||||
import kotlinx.coroutines.flow.Flow
|
import kotlinx.coroutines.flow.Flow
|
||||||
import kotlinx.coroutines.flow.map
|
import kotlinx.coroutines.flow.map
|
||||||
|
|
||||||
|
private val spaceAnnouncementKey = intPreferencesKey("spaceAnnouncement")
|
||||||
private val newNotificationSoundKey = intPreferencesKey("newNotificationSound")
|
private val newNotificationSoundKey = intPreferencesKey("newNotificationSound")
|
||||||
|
|
||||||
@ContributesBinding(AppScope::class)
|
@ContributesBinding(AppScope::class)
|
||||||
@@ -52,6 +53,6 @@ class DefaultAnnouncementStore(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun Announcement.toKey() = when (this) {
|
private fun Announcement.toKey() = when (this) {
|
||||||
is Announcement.Fullscreen -> intPreferencesKey("fullscreen_" + this::class.simpleName)
|
Announcement.Fullscreen.Space -> spaceAnnouncementKey
|
||||||
Announcement.NewNotificationSound -> newNotificationSoundKey
|
Announcement.NewNotificationSound -> newNotificationSoundKey
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user