mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Hide composer buttons if we can't send events (#7719)
This commit is contained in:
parent
29cf22a521
commit
2e19f81bd5
@ -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 New Issue
Block a user