Don't show composer send button if user cannot send ()

Such as when room is tombstoned
pull/28788/head^2
Michael Telatynski 2023-07-19 12:03:44 +01:00 committed by GitHub
parent a1ca79c6c7
commit 0c4a5cd7c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
src/components/views/rooms

View File

@ -588,7 +588,7 @@ export class MessageComposer extends React.Component<IProps, IState> {
/>,
);
const showSendButton = !this.state.isComposerEmpty || this.state.haveRecording;
const showSendButton = canSendMessages && (!this.state.isComposerEmpty || this.state.haveRecording);
const classes = classNames({
"mx_MessageComposer": true,