Remove unused prop

This commit is contained in:
Travis Ralston 2020-09-28 21:23:55 -06:00
parent 6b2e34dc00
commit 78a04a6106

View file

@ -455,10 +455,6 @@ export default class AppTile extends React.Component {
ActiveWidgetStore.setWidgetCapabilities(this.props.app.id, requestedWhitelistCapabilies); ActiveWidgetStore.setWidgetCapabilities(this.props.app.id, requestedWhitelistCapabilies);
if (this.props.onCapabilityRequest) {
this.props.onCapabilityRequest(requestedCapabilities);
}
// We only tell Jitsi widgets that we're ready because they're realistically the only ones // We only tell Jitsi widgets that we're ready because they're realistically the only ones
// using this custom extension to the widget API. // using this custom extension to the widget API.
if (WidgetType.JITSI.matches(this.props.app.type)) { if (WidgetType.JITSI.matches(this.props.app.type)) {
@ -941,9 +937,6 @@ AppTile.propTypes = {
// NOTE -- Use with caution. This is intended to aid better integration / UX // NOTE -- Use with caution. This is intended to aid better integration / UX
// basic widget capabilities, e.g. injecting sticker message events. // basic widget capabilities, e.g. injecting sticker message events.
whitelistCapabilities: PropTypes.array, whitelistCapabilities: PropTypes.array,
// Optional function to be called on widget capability request
// Called with an array of the requested capabilities
onCapabilityRequest: PropTypes.func,
// Is this an instance of a user widget // Is this an instance of a user widget
userWidget: PropTypes.bool, userWidget: PropTypes.bool,
}; };