From 29085895a7da78661742db44ad839763b00b1f4d Mon Sep 17 00:00:00 2001 From: Jason Robinson Date: Tue, 20 Aug 2019 15:55:57 +0300 Subject: [PATCH] Fix regression on widget panel edit button Due to commit https://github.com/matrix-org/matrix-react-sdk/commit/ffa49df8892fa5377312dce28adb721326a9009e the parameters for the call to open a widget in edit mode from the widget panel in a room has broken. The `screen` parameter needs to be prefixed with `type_` as it was before. This corresponds to parameters supplied when creating the URL when opening a widget in edit mode through Scalar screens. Signed-off-by: Jason Robinson --- src/components/views/elements/AppTile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index e0dd47326d..9e3570a608 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -266,7 +266,7 @@ export default class AppTile extends React.Component { // TODO: Open the right manager for the widget IntegrationManagers.sharedInstance().getPrimaryManager().open( this.props.room, - this.props.type, + 'type_' + this.props.type, this.props.id, ); }