Skip to content

Commit 4681a39

Browse files
committed
refactor: remove publishTypingEvent from MessageInputProps
1 parent 9fb68d5 commit 4681a39

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

src/components/MessageInput/MessageInput.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ export type MessageInputProps = {
102102
}) => Promise<void> | void;
103103
/** When replying in a thread, the parent message object */
104104
parent?: LocalMessage;
105-
// todo: X document change in configuration
106-
/** If true, triggers typing events on text input keystroke */
107-
publishTypingEvent?: boolean;
108105
/** If true, will use an optional dependency to support transliteration in the input for mentions, default is false. See: https://github.com/getstream/transliterate */
109106
/**
110107
* Currently, `Enter` is the default submission key and `Shift`+`Enter` is the default combination for the new line.

src/components/MessageInput/hooks/useCreateMessageInputContext.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export const useCreateMessageInputContext = (value: MessageInputContextValue) =>
2727
minRows,
2828
onPaste,
2929
parent,
30-
publishTypingEvent,
3130
recordingController,
3231
setCooldownRemaining,
3332
shouldSubmit,
@@ -61,7 +60,6 @@ export const useCreateMessageInputContext = (value: MessageInputContextValue) =>
6160
minRows,
6261
onPaste,
6362
parent,
64-
publishTypingEvent,
6563
recordingController,
6664
setCooldownRemaining,
6765
shouldSubmit,
@@ -79,7 +77,6 @@ export const useCreateMessageInputContext = (value: MessageInputContextValue) =>
7977
isThreadInput,
8078
minRows,
8179
parentId,
82-
publishTypingEvent,
8380
recordingController,
8481
],
8582
);

src/components/Thread/Thread.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ const ThreadInner = (props: ThreadProps & { key: string }) => {
201201
Input={ThreadInput}
202202
isThreadInput
203203
parent={thread ?? parentMessage}
204-
publishTypingEvent={false}
205204
{...additionalMessageInputProps}
206205
/>
207206
</div>

src/components/Thread/__tests__/Thread.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ describe('Thread', () => {
189189
focus: props.autoFocus,
190190
Input: expect.any(Function),
191191
parent: expect.objectContaining(parentMessage),
192-
publishTypingEvent: false,
193192
...props.additionalMessageInputProps,
194193
}),
195194
undefined,
@@ -218,7 +217,6 @@ describe('Thread', () => {
218217
focus: props.autoFocus,
219218
Input: CustomMessageInputMock,
220219
parent: expect.objectContaining(parentMessage),
221-
publishTypingEvent: false,
222220
...props.additionalMessageInputProps,
223221
}),
224222
undefined,
@@ -245,7 +243,6 @@ describe('Thread', () => {
245243
focus: props.autoFocus,
246244
Input: CustomMessageInputMockAdditional,
247245
parent: expect.objectContaining(parentMessage),
248-
publishTypingEvent: false,
249246
...props.additionalMessageInputProps,
250247
}),
251248
undefined,

0 commit comments

Comments
 (0)