Benoit Marty 2021-02-05 11:35:55 +01:00
parent 5b3065730e
commit 47f1ec78d4

View file

@ -400,15 +400,20 @@ class RoomDetailViewModel @AssistedInject constructor(
// We use the default element wrapper for this widget // We use the default element wrapper for this widget
// https://github.com/vector-im/element-web/blob/develop/docs/jitsi-dev.md // https://github.com/vector-im/element-web/blob/develop/docs/jitsi-dev.md
val url = "https://app.element.io/jitsi.html" + // https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/utils/WidgetUtils.ts#L469
"?confId=$confId" + val url = buildString {
"#conferenceDomain=\$domain" + append("https://app.element.io/jitsi.html")
"&conferenceId=\$conferenceId" + // ElementWeb does not do that
"&isAudioOnly=${!action.withVideo}" + // appendParamToUrl("confId", confId)
"&displayName=\$matrix_display_name" + append("#conferenceDomain=\$domain")
"&avatarUrl=\$matrix_avatar_url" + append("&conferenceId=\$conferenceId")
"&userId=\$matrix_user_id" append("&isAudioOnly=\$isAudioOnly")
append("&displayName=\$matrix_display_name")
append("&avatarUrl=\$matrix_avatar_url")
append("&userId=\$matrix_user_id")
append("&roomId=\$matrix_room_id")
append("&theme=\$theme")
}
val widgetEventContent = mapOf( val widgetEventContent = mapOf(
"url" to url, "url" to url,
"type" to WidgetType.Jitsi.legacy, "type" to WidgetType.Jitsi.legacy,