mirror of
https://github.com/element-hq/element-android
synced 2024-11-28 05:31:21 +03:00
Follow what's in https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/utils/WidgetUtils.ts#L469
This commit is contained in:
parent
5b3065730e
commit
47f1ec78d4
1 changed files with 14 additions and 9 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue