mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-10 09:00:41 +01:00
Add element call widget type.
This commit is contained in:
parent
6b0f8318b7
commit
125135c250
@ -28,7 +28,8 @@ private val DEFINED_TYPES by lazy {
|
|||||||
WidgetType.StickerPicker,
|
WidgetType.StickerPicker,
|
||||||
WidgetType.Grafana,
|
WidgetType.Grafana,
|
||||||
WidgetType.Custom,
|
WidgetType.Custom,
|
||||||
WidgetType.IntegrationManager
|
WidgetType.IntegrationManager,
|
||||||
|
WidgetType.ElementCall
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,6 +48,7 @@ sealed class WidgetType(open val preferred: String, open val legacy: String = pr
|
|||||||
object Grafana : WidgetType("m.grafana")
|
object Grafana : WidgetType("m.grafana")
|
||||||
object Custom : WidgetType("m.custom")
|
object Custom : WidgetType("m.custom")
|
||||||
object IntegrationManager : WidgetType("m.integration_manager")
|
object IntegrationManager : WidgetType("m.integration_manager")
|
||||||
|
object ElementCall : WidgetType("io.element.call")
|
||||||
data class Fallback(override val preferred: String) : WidgetType(preferred)
|
data class Fallback(override val preferred: String) : WidgetType(preferred)
|
||||||
|
|
||||||
fun matches(type: String): Boolean {
|
fun matches(type: String): Boolean {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user