1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-13 08:02:38 +03:00

Add API to send visibiliy actions to widgets

This commit is contained in:
Luke Barnard
2018-05-11 16:22:54 +01:00
parent 42c59b5923
commit bd0301c666
2 changed files with 14 additions and 0 deletions

View File

@@ -389,6 +389,10 @@ export default class AppTile extends React.Component {
}).catch((err) => {
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
});
// Allow parents to access widget messaging
if (this.props.collectWidgetMessaging) this.props.collectWidgetMessaging(this.widgetMessaging);
this.setState({loading: false});
}