Support and send the config over to capable widgets
For https://github.com/vector-im/riot-web/pull/12845
This commit is contained in:
parent
26bda5933b
commit
bdcb65de77
5 changed files with 64 additions and 6 deletions
|
@ -419,6 +419,12 @@ export default class AppTile extends React.Component {
|
|||
if (this.props.onCapabilityRequest) {
|
||||
this.props.onCapabilityRequest(requestedCapabilities);
|
||||
}
|
||||
|
||||
// We only tell Jitsi widgets that we're ready because they're realistically the only ones
|
||||
// using this custom extension to the widget API.
|
||||
if (this.props.type === 'jitsi') {
|
||||
widgetMessaging.flagReadyToContinue();
|
||||
}
|
||||
}).catch((err) => {
|
||||
console.log(`Failed to get capabilities for widget type ${this.props.type}`, this.props.id, err);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue