diff --git a/src/components/views/elements/AppTile.js b/src/components/views/elements/AppTile.js index f7c2bd1aca..b10177386e 100644 --- a/src/components/views/elements/AppTile.js +++ b/src/components/views/elements/AppTile.js @@ -579,8 +579,8 @@ export default class AppTile extends React.Component { // editing is done in scalar const canUserModify = this._canUserModify(); const showEditButton = Boolean(this._scalarClient && canUserModify); - const showDeleteButton = canUserModify; - const showCancelButton = !showDeleteButton; + const showDeleteButton = (this.props.showDelete === undefined || this.props.showDelete) && canUserModify; + const showCancelButton = (this.props.showCancel === undefined || this.props.showCancel) && !showDeleteButton; // Picture snapshot - only show button when apps are maximised. const showPictureSnapshotButton = this._hasCapability('m.capability.screenshot') && this.props.show; const showMinimiseButton = this.props.showMinimise && this.props.show; diff --git a/src/components/views/rooms/Stickerpicker.js b/src/components/views/rooms/Stickerpicker.js index b8fe3afb97..188b42622a 100644 --- a/src/components/views/rooms/Stickerpicker.js +++ b/src/components/views/rooms/Stickerpicker.js @@ -226,6 +226,7 @@ export default class Stickerpicker extends React.Component { showTitle={false} showMinimise={true} showDelete={false} + showCancel={false} showPopout={false} onMinimiseClick={this._onHideStickersClick} handleMinimisePointerEvents={true}