From 4a2557dbcd2f875f895d9ef147bdb7e866c1d547 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Sat, 6 Feb 2021 11:03:55 +0100 Subject: [PATCH] Apparently EW still provide `confId` in the URL, I can't figure out where in the react SDK, but do the same, maybe not to break EI --- .../app/features/home/room/detail/RoomDetailViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt index 1102b2973e..588b7783e2 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/RoomDetailViewModel.kt @@ -90,6 +90,7 @@ import org.matrix.android.sdk.api.session.room.timeline.TimelineEvent import org.matrix.android.sdk.api.session.room.timeline.getTextEditableContent import org.matrix.android.sdk.api.session.widgets.model.Widget import org.matrix.android.sdk.api.session.widgets.model.WidgetType +import org.matrix.android.sdk.api.util.appendParamToUrl import org.matrix.android.sdk.api.util.toOptional import org.matrix.android.sdk.internal.crypto.model.event.EncryptedEventContent import org.matrix.android.sdk.internal.crypto.model.event.WithHeldCode @@ -403,8 +404,7 @@ class RoomDetailViewModel @AssistedInject constructor( // https://github.com/matrix-org/matrix-react-sdk/blob/develop/src/utils/WidgetUtils.ts#L469 val url = buildString { append("https://app.element.io/jitsi.html") - // ElementWeb does not do that - // appendParamToUrl("confId", confId) + appendParamToUrl("confId", confId) append("#conferenceDomain=\$domain") append("&conferenceId=\$conferenceId") append("&isAudioOnly=\$isAudioOnly")