mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 22:14:58 +08:00
Only show apps button if labs feature enabled.
This commit is contained in:
parent
338a4db87f
commit
3872f0750c
@ -315,6 +315,7 @@ export default class MessageComposer extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Apps
|
// Apps
|
||||||
|
if (UserSettingsStore.isFeatureEnabled('matrix_apps')) {
|
||||||
if (this.props.showApps) {
|
if (this.props.showApps) {
|
||||||
hideAppsButton =
|
hideAppsButton =
|
||||||
<div key="controls_hide_apps" className="mx_MessageComposer_apps" onClick={this.onHideAppsClick} title="Hide Apps">
|
<div key="controls_hide_apps" className="mx_MessageComposer_apps" onClick={this.onHideAppsClick} title="Hide Apps">
|
||||||
@ -326,6 +327,7 @@ export default class MessageComposer extends React.Component {
|
|||||||
<TintableSvg src="img/icons-apps.svg" width="35" height="35"/>
|
<TintableSvg src="img/icons-apps.svg" width="35" height="35"/>
|
||||||
</div>;
|
</div>;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const canSendMessages = this.props.room.currentState.maySendMessage(
|
const canSendMessages = this.props.room.currentState.maySendMessage(
|
||||||
MatrixClientPeg.get().credentials.userId);
|
MatrixClientPeg.get().credentials.userId);
|
||||||
|
Loading…
Reference in New Issue
Block a user