You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-11 20:22:36 +03:00
Only show apps button if labs feature enabled.
This commit is contained in:
@@ -315,16 +315,18 @@ export default class MessageComposer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Apps
|
// Apps
|
||||||
if (this.props.showApps) {
|
if (UserSettingsStore.isFeatureEnabled('matrix_apps')) {
|
||||||
hideAppsButton =
|
if (this.props.showApps) {
|
||||||
<div key="controls_hide_apps" className="mx_MessageComposer_apps" onClick={this.onHideAppsClick} title="Hide Apps">
|
hideAppsButton =
|
||||||
<TintableSvg src="img/icons-apps-active.svg" width="35" height="35"/>
|
<div key="controls_hide_apps" className="mx_MessageComposer_apps" onClick={this.onHideAppsClick} title="Hide Apps">
|
||||||
</div>;
|
<TintableSvg src="img/icons-apps-active.svg" width="35" height="35"/>
|
||||||
} else {
|
</div>;
|
||||||
showAppsButton =
|
} else {
|
||||||
<div key="show_apps" className="mx_MessageComposer_apps" onClick={this.onShowAppsClick} title="Show Apps">
|
showAppsButton =
|
||||||
<TintableSvg src="img/icons-apps.svg" width="35" height="35"/>
|
<div key="show_apps" className="mx_MessageComposer_apps" onClick={this.onShowAppsClick} title="Show Apps">
|
||||||
</div>;
|
<TintableSvg src="img/icons-apps.svg" width="35" height="35"/>
|
||||||
|
</div>;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const canSendMessages = this.props.room.currentState.maySendMessage(
|
const canSendMessages = this.props.room.currentState.maySendMessage(
|
||||||
|
|||||||
Reference in New Issue
Block a user