You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
Send visibility only when changed, and messaging is available
This commit is contained in:
@@ -172,12 +172,7 @@ export default class AppTile extends React.Component {
|
||||
componentDidUpdate() {
|
||||
// Allow parents to access widget messaging
|
||||
if (this.props.collectWidgetMessaging) {
|
||||
this.props.collectWidgetMessaging(new Promise((resolve) => {
|
||||
if (this.widgetMessaging) resolve(this.widgetMessaging);
|
||||
|
||||
// Expect this to be resolved later
|
||||
this._exposeWidgetMessaging = resolve;
|
||||
}));
|
||||
this.props.collectWidgetMessaging(this.widgetMessaging);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user