Skip to content

Commit 257d42b

Browse files
authored
Merge pull request #2837 from GetStream/develop
Next Release
2 parents e606b78 + 8cc863d commit 257d42b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package/src/components/MessageInput/MessageInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ export const MessageInput = <
11031103
const { isOnline } = useChatContext();
11041104
const ownCapabilities = useOwnCapabilitiesContext();
11051105

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

11081108
const {
11091109
additionalTextInputProps,
@@ -1182,7 +1182,7 @@ export const MessageInput = <
11821182
* Disable the message input if the channel is frozen, or the user doesn't have the capability to send a message.
11831183
* Enable it in frozen mode, if it the input has editing state.
11841184
*/
1185-
if ((disabled || !ownCapabilities.sendMessage) && !editing && SendMessageDisallowedIndicator) {
1185+
if (!ownCapabilities.sendMessage && !editing && SendMessageDisallowedIndicator) {
11861186
return <SendMessageDisallowedIndicator />;
11871187
}
11881188

0 commit comments

Comments
 (0)