Skip to content

Commit 85e022c

Browse files
committed
refactor: remove mentionAllAppUsers, mentionQueryParams from MessageInputProps
1 parent 5a32bc3 commit 85e022c

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/components/MessageInput/MessageInput.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { DialogManagerProvider } from '../../context';
1313

1414
import type { LocalMessage, Message, SendMessageOptions } from 'stream-chat';
1515

16-
import type { SearchQueryParams } from '../ChannelSearch/hooks/useChannelSearch';
1716
import type { CustomAudioRecordingConfig } from '../MediaRecorder';
1817
import { useRegisterDropHandlers } from './WithDragAndDropUpload';
1918

@@ -66,10 +65,6 @@ export type MessageInputProps = {
6665
isThreadInput?: boolean;
6766
/** Max number of rows the underlying `textarea` component is allowed to grow */
6867
maxRows?: number;
69-
/** If true, the suggestion list will search all app users for an @mention, not just current channel members/watchers. Default: false. */
70-
mentionAllAppUsers?: boolean;
71-
/** Object containing filters/sort/options overrides for an @mention user query */
72-
mentionQueryParams?: SearchQueryParams['userFilters'];
7368
/** Min number of rows the underlying `textarea` will start with. The `grow` on MessageInput prop has to be enabled for `minRows` to take effect. */
7469
minRows?: number;
7570
/** Function to override the default message sending process. Not message updating process. */
@@ -86,7 +81,7 @@ export type MessageInputProps = {
8681
* Currently, `Enter` is the default submission key and `Shift`+`Enter` is the default combination for the new line.
8782
* If specified, this function overrides the default behavior specified previously.
8883
*
89-
* Example of default behaviour:
84+
* Example of default behavior:
9085
* ```tsx
9186
* const defaultShouldSubmit = (event) => event.key === "Enter" && !event.shiftKey;
9287
* ```

src/components/MessageInput/hooks/useCreateMessageInputContext.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export const useCreateMessageInputContext = (value: MessageInputContextValue) =>
1818
insertText,
1919
isThreadInput,
2020
maxRows,
21-
mentionAllAppUsers,
22-
mentionQueryParams,
2321
minRows,
2422
onPaste,
2523
parent,
@@ -47,8 +45,6 @@ export const useCreateMessageInputContext = (value: MessageInputContextValue) =>
4745
insertText,
4846
isThreadInput,
4947
maxRows,
50-
mentionAllAppUsers,
51-
mentionQueryParams,
5248
minRows,
5349
onPaste,
5450
parent,

0 commit comments

Comments
 (0)