Skip to content

Commit

Permalink
fix: message disallowed indicator display
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Nov 4, 2024
1 parent 0a4c852 commit b9042da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/src/components/MessageInput/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ export const MessageInput = <
* Disable the message input if the channel is frozen, or the user doesn't have the capability to send a message.
* Enable it in frozen mode, if it the input has editing state.
*/
if (!editing && disabled && !ownCapabilities.sendMessage && SendMessageDisallowedIndicator) {
if ((disabled || !ownCapabilities.sendMessage) && !editing && SendMessageDisallowedIndicator) {
return <SendMessageDisallowedIndicator />;
}

Expand Down

0 comments on commit b9042da

Please sign in to comment.