We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8467b22 commit 33d158aCopy full SHA for 33d158a
package/src/contexts/channelsStateContext/useChannelState.ts
@@ -1,6 +1,6 @@
1
import { useCallback, useMemo } from 'react';
2
3
-import type { Channel as ChannelType, LocalMessage } from 'stream-chat';
+import type { Channel as ChannelType } from 'stream-chat';
4
5
import { useChannelsStateContext } from './ChannelsStateContext';
6
@@ -55,7 +55,7 @@ export function useChannelState(
55
(threadId && channel?.state?.threads?.[threadId]) || [],
56
);
57
const setThreadMessages = useCallback(
58
- (value: LocalMessage[]) => setThreadMessagesInternal([...value]),
+ (value: ChannelState['threadMessages']) => setThreadMessagesInternal([...value]),
59
[setThreadMessagesInternal],
60
61
0 commit comments