Skip to content

Commit b9042da

Browse files
committed
fix: message disallowed indicator display
1 parent 0a4c852 commit b9042da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/MessageInput/MessageInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,7 @@ export const MessageInput = <
11651165
* Disable the message input if the channel is frozen, or the user doesn't have the capability to send a message.
11661166
* Enable it in frozen mode, if it the input has editing state.
11671167
*/
1168-
if (!editing && disabled && !ownCapabilities.sendMessage && SendMessageDisallowedIndicator) {
1168+
if ((disabled || !ownCapabilities.sendMessage) && !editing && SendMessageDisallowedIndicator) {
11691169
return <SendMessageDisallowedIndicator />;
11701170
}
11711171

0 commit comments

Comments
 (0)