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 956f4b5 commit 6d97233Copy full SHA for 6d97233
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
@@ -68,7 +68,7 @@ export function useChannelState<
68
(threadId && channel?.state?.threads?.[threadId]) || [],
69
);
70
const setThreadMessages = useCallback(
71
- (value: LocalMessage[]) => setThreadMessagesInternal([...value]),
+ (value: ChannelState['threadMessages']) => setThreadMessagesInternal([...value]),
72
[setThreadMessagesInternal],
73
74
0 commit comments