mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
Hide composer buttons if we can't send events (#7719)
This commit is contained in:
parent
29cf22a521
commit
2e19f81bd5
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue