{ this.props.showMenubar &&
@@ -753,12 +822,8 @@ export default class AppTile extends React.Component {
AppTile.displayName = 'AppTile';
AppTile.propTypes = {
- id: PropTypes.string.isRequired,
- eventId: PropTypes.string, // required for room widgets
- url: PropTypes.string.isRequired,
- name: PropTypes.string.isRequired,
+ app: PropTypes.object.isRequired,
room: PropTypes.object.isRequired,
- type: PropTypes.string.isRequired,
// Specifying 'fullWidth' as true will render the app tile to fill the width of the app drawer continer.
// This should be set to true when there is only one widget in the app drawer, otherwise it should be false.
fullWidth: PropTypes.bool,
@@ -805,7 +870,6 @@ AppTile.propTypes = {
};
AppTile.defaultProps = {
- url: "",
waitForIframeLoad: true,
showMenubar: true,
showTitle: true,
diff --git a/src/components/views/elements/PersistentApp.js b/src/components/views/elements/PersistentApp.js
index a807ed3b93..83763f6c56 100644
--- a/src/components/views/elements/PersistentApp.js
+++ b/src/components/views/elements/PersistentApp.js
@@ -1,6 +1,6 @@
/*
Copyright 2018 New Vector Ltd
-Copyright 2019 The Matrix.org Foundation C.I.C.
+Copyright 2019, 2020 The Matrix.org Foundation C.I.C.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -75,11 +75,7 @@ export default createReactClass({
const AppTile = sdk.getComponent('elements.AppTile');
return
{
- params['$' + key] = app.data[key];
- });
-
- app.waitForIframeLoad = (app.data.waitForIframeLoad === 'false' ? false : true);
- }
-
- app.url = encodeUri(app.url, params);
-
return app;
}
@@ -462,7 +404,6 @@ export default class WidgetUtils {
// widgets from at all, but it probably makes sense for sanity.
if (appType === 'jitsi') {
capWhitelist.push(Capability.AlwaysOnScreen);
- capWhitelist.push(Capability.GetRiotWebConfig);
}
return capWhitelist;
diff --git a/src/widgets/WidgetApi.ts b/src/widgets/WidgetApi.ts
index d6d1c79a99..05237d258f 100644
--- a/src/widgets/WidgetApi.ts
+++ b/src/widgets/WidgetApi.ts
@@ -23,7 +23,6 @@ export enum Capability {
Screenshot = "m.capability.screenshot",
Sticker = "m.sticker",
AlwaysOnScreen = "m.always_on_screen",
- GetRiotWebConfig = "im.vector.web.riot_config",
}
export enum KnownWidgetActions {
@@ -34,7 +33,6 @@ export enum KnownWidgetActions {
UpdateVisibility = "visibility",
ReceiveOpenIDCredentials = "openid_credentials",
SetAlwaysOnScreen = "set_always_on_screen",
- GetRiotWebConfig = "im.vector.web.riot_config",
ClientReady = "im.vector.ready",
}
@@ -157,12 +155,4 @@ export class WidgetApi {
resolve(); // SetAlwaysOnScreen is currently fire-and-forget, but that could change.
});
}
-
- public getRiotConfig(): Promise {
- return new Promise(resolve => {
- this.callAction(KnownWidgetActions.GetRiotWebConfig, {}, response => {
- resolve(response.response.config);
- });
- });
- }
}