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

Commit 0c4a5cd

Browse files
authored
Don't show composer send button if user cannot send (#11298)
Such as when room is tombstoned
1 parent a1ca79c commit 0c4a5cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/rooms/MessageComposer.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ export class MessageComposer extends React.Component<IProps, IState> {
588588
/>,
589589
);
590590

591-
const showSendButton = !this.state.isComposerEmpty || this.state.haveRecording;
591+
const showSendButton = canSendMessages && (!this.state.isComposerEmpty || this.state.haveRecording);
592592

593593
const classes = classNames({
594594
"mx_MessageComposer": true,

0 commit comments

Comments
 (0)