mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-23 18:05:59 +03:00
Ganfra's review
This commit is contained in:
parent
6ee6b0cad9
commit
4d3262ce41
1 changed files with 3 additions and 12 deletions
|
@ -57,17 +57,8 @@ class WidgetItemFactory @Inject constructor(
|
||||||
|
|
||||||
return when (WidgetType.fromString(widgetContent.type ?: previousWidgetContent?.type ?: "")) {
|
return when (WidgetType.fromString(widgetContent.type ?: previousWidgetContent?.type ?: "")) {
|
||||||
WidgetType.Jitsi -> createJitsiItem(event, callback, widgetContent, previousWidgetContent)
|
WidgetType.Jitsi -> createJitsiItem(event, callback, widgetContent, previousWidgetContent)
|
||||||
WidgetType.TradingView,
|
// There is lot of other widget types we could improve here
|
||||||
WidgetType.Spotify,
|
else -> noticeItemFactory.create(event, highlight, roomSummaryHolder.roomSummary, callback)
|
||||||
WidgetType.Video,
|
|
||||||
WidgetType.GoogleDoc,
|
|
||||||
WidgetType.GoogleCalendar,
|
|
||||||
WidgetType.Etherpad,
|
|
||||||
WidgetType.StickerPicker,
|
|
||||||
WidgetType.Grafana,
|
|
||||||
WidgetType.Custom,
|
|
||||||
WidgetType.IntegrationManager,
|
|
||||||
is WidgetType.Fallback -> noticeItemFactory.create(event, highlight, roomSummaryHolder.roomSummary, callback)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue