You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-16 06:42:26 +03:00
Use our own jitsi widget for the popout URL
rather than the URL supplied by the widget
This commit is contained in:
@@ -591,8 +591,14 @@ export default class AppTile extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_getPopoutUrl() {
|
_getPopoutUrl() {
|
||||||
|
if (this.props.app.type === 'jitsi') {
|
||||||
|
return WidgetUtils.getLocalJitsiWrapperUrl({forLocalRender: false});
|
||||||
|
} else {
|
||||||
|
// use app.url, not state.widgetUrl, because we want the one without
|
||||||
|
// the wURL params for the popped-out version.
|
||||||
return this._templatedUrl(this._getSafeUrl(this.props.app.url));
|
return this._templatedUrl(this._getSafeUrl(this.props.app.url));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
_getSafeUrl(u) {
|
_getSafeUrl(u) {
|
||||||
const parsedWidgetUrl = url.parse(u, true);
|
const parsedWidgetUrl = url.parse(u, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user