Fix regression on widget panel edit button

Due to commit ffa49df889
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 <jasonr@matrix.org>
This commit is contained in:
Jason Robinson 2019-08-20 15:55:57 +03:00
parent f5da870040
commit 29085895a7

View file

@ -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,
);
}