Skip to content

Commit e6774d0

Browse files
committed
fix: edited message usage
1 parent 87f415e commit e6774d0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

package/src/components/MessageInput/MessageInput.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ type MessageInputPropsWithContext = Pick<
109109
'AttachmentPickerSelectionBar'
110110
> &
111111
Pick<ChatContextValue, 'isOnline'> &
112-
Pick<ChannelContextValue, 'channel' | 'members' | 'threadList' | 'watchers'> &
112+
Pick<ChannelContextValue, 'channel' | 'editing' | 'members' | 'threadList' | 'watchers'> &
113113
Pick<
114114
MessageInputContextValue,
115115
| 'additionalTextInputProps'
@@ -129,7 +129,6 @@ type MessageInputPropsWithContext = Pick<
129129
| 'closeAttachmentPicker'
130130
| 'compressImageQuality'
131131
| 'doFileUploadRequest'
132-
| 'editing'
133132
| 'FileUploadPreview'
134133
| 'ImageUploadPreview'
135134
| 'Input'
@@ -952,7 +951,7 @@ export const MessageInput = (props: MessageInputProps) => {
952951
const { isOnline } = useChatContext();
953952
const ownCapabilities = useOwnCapabilitiesContext();
954953

955-
const { channel, members, threadList, watchers } = useChannelContext();
954+
const { channel, editing, members, threadList, watchers } = useChannelContext();
956955

957956
const {
958957
additionalTextInputProps,
@@ -975,7 +974,6 @@ export const MessageInput = (props: MessageInputProps) => {
975974
CooldownTimer,
976975
CreatePollContent,
977976
doFileUploadRequest,
978-
editing,
979977
FileUploadPreview,
980978
ImageUploadPreview,
981979
Input,

0 commit comments

Comments
 (0)