Hide composer buttons if we can't send events (#7719)

This commit is contained in:
Šimon Brandner 2022-02-04 10:36:31 +01:00 committed by GitHub
parent 29cf22a521
commit 2e19f81bd5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -428,7 +428,7 @@ export default class MessageComposer extends React.Component<IProps, IState> {
permalinkCreator={this.props.permalinkCreator} />
<div className="mx_MessageComposer_row">
{ controls }
<MessageComposerButtons
{ this.state.canSendMessages && <MessageComposerButtons
addEmoji={this.addEmoji}
haveRecording={this.state.haveRecording}
isMenuOpen={this.state.isMenuOpen}
@ -446,7 +446,7 @@ export default class MessageComposer extends React.Component<IProps, IState> {
showLocationButton={!window.electron}
showStickersButton={this.state.showStickersButton}
toggleButtonMenu={this.toggleButtonMenu}
/>
/> }
{ showSendButton && (
<SendButton
key="controls_send"