Add a custom widget API action for viewing a different room

This commit is contained in:
Travis Ralston 2020-11-02 15:17:05 -07:00
parent 294876f062
commit e15041bd53
5 changed files with 89 additions and 7 deletions

View file

@ -61,7 +61,7 @@ export default class ModalWidgetDialog extends React.PureComponent<IProps, IStat
}
public componentDidMount() {
const driver = new StopGapWidgetDriver( []);
const driver = new StopGapWidgetDriver( [], this.widget.type);
const messaging = new ClientWidgetApi(this.widget, this.appFrame.current, driver);
this.setState({messaging});
}