Let enterprise build be able to use a different notification channel for noisy notification.

This commit is contained in:
Benoit Marty 2026-02-11 09:59:45 +01:00
parent 7535258bae
commit 6e958f3132
17 changed files with 135 additions and 26 deletions

View file

@ -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,
)

View file

@ -15,4 +15,5 @@ internal fun InternalElementWellKnown.map() = ElementWellKnown(
enforceElementPro = enforceElementPro,
rageshakeUrl = rageshakeUrl,
brandColor = brandColor,
notificationSound = notificationSound,
)

View file

@ -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,
)
)
)