{ this.props.showMenubar &&
@@ -753,12 +820,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 +868,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;
}