Skip to content

Commit

Permalink
Merge pull request #2837 from GetStream/develop
Browse files Browse the repository at this point in the history
Next Release
  • Loading branch information
isekovanic authored Dec 10, 2024
2 parents e606b78 + 8cc863d commit 257d42b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/src/components/MessageInput/MessageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ export const MessageInput = <
const { isOnline } = useChatContext();
const ownCapabilities = useOwnCapabilitiesContext();

const { disabled, members, threadList, watchers } = useChannelContext<StreamChatGenerics>();
const { members, threadList, watchers } = useChannelContext<StreamChatGenerics>();

const {
additionalTextInputProps,
Expand Down Expand Up @@ -1182,7 +1182,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 ((disabled || !ownCapabilities.sendMessage) && !editing && SendMessageDisallowedIndicator) {
if (!ownCapabilities.sendMessage && !editing && SendMessageDisallowedIndicator) {
return <SendMessageDisallowedIndicator />;
}

Expand Down

0 comments on commit 257d42b

Please sign in to comment.