From 78a04a610662ea0071de3f77b0ab41d0bef6e3ae Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 28 Sep 2020 21:23:55 -0600 Subject: [PATCH] Remove unused prop --- src/components/views/elements/AppTile.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index 83dd9d7b1e..0558c48434 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -455,10 +455,6 @@ export default class AppTile extends React.Component { 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 // using this custom extension to the widget API. 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 // basic widget capabilities, e.g. injecting sticker message events. 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 userWidget: PropTypes.bool, };