mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
Let enterprise build be able to use a different notification channel for noisy notification.
This commit is contained in:
+2
@@ -30,4 +30,6 @@ data class InternalElementWellKnown(
|
||||
val rageshakeUrl: String? = null,
|
||||
@SerialName("brand_color")
|
||||
val brandColor: String? = null,
|
||||
@SerialName("notification_sound")
|
||||
val notificationSound: String? = null,
|
||||
)
|
||||
|
||||
+1
@@ -15,4 +15,5 @@ internal fun InternalElementWellKnown.map() = ElementWellKnown(
|
||||
enforceElementPro = enforceElementPro,
|
||||
rageshakeUrl = rageshakeUrl,
|
||||
brandColor = brandColor,
|
||||
notificationSound = notificationSound,
|
||||
)
|
||||
|
||||
+5
-1
@@ -35,6 +35,7 @@ class DefaultSessionWellknownRetrieverTest {
|
||||
enforceElementPro = null,
|
||||
rageshakeUrl = null,
|
||||
brandColor = null,
|
||||
notificationSound = null,
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -51,7 +52,8 @@ class DefaultSessionWellknownRetrieverTest {
|
||||
"registration_helper_url": "a_registration_url",
|
||||
"enforce_element_pro": true,
|
||||
"rageshake_url": "a_rageshake_url",
|
||||
"brand_color": "#FF0000"
|
||||
"brand_color": "#FF0000",
|
||||
"notification_sound": "a_notification_sound.flac"
|
||||
}""".trimIndent().toByteArray()
|
||||
)
|
||||
}
|
||||
@@ -63,6 +65,7 @@ class DefaultSessionWellknownRetrieverTest {
|
||||
enforceElementPro = true,
|
||||
rageshakeUrl = "a_rageshake_url",
|
||||
brandColor = "#FF0000",
|
||||
notificationSound = "a_notification_sound.flac",
|
||||
)
|
||||
)
|
||||
)
|
||||
@@ -89,6 +92,7 @@ class DefaultSessionWellknownRetrieverTest {
|
||||
enforceElementPro = true,
|
||||
rageshakeUrl = "a_rageshake_url",
|
||||
brandColor = null,
|
||||
notificationSound = null,
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user