Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Hide composer buttons if we can't send events (#7719)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored Feb 4, 2022
1 parent 29cf22a commit 2e19f81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/views/rooms/MessageComposer.tsx
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 2e19f81

Please sign in to comment.