Skip to content

Commit ea64eca

Browse files
committed
fix: lint issues
1 parent bf783d1 commit ea64eca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package/src/components/MessageList/hooks/useLastReadData.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { useMemo } from 'react';
22

3-
import { getReadStates } from '../utils/getReadStates';
4-
53
import type { ChannelState } from 'stream-chat';
64

7-
import type { DefaultStreamChatGenerics } from '../../../types/types';
85
import { PaginatedMessageListContextValue } from '../../../contexts/paginatedMessageListContext/PaginatedMessageListContext';
96
import { ThreadContextValue } from '../../../contexts/threadContext/ThreadContext';
7+
import type { DefaultStreamChatGenerics } from '../../../types/types';
8+
import { getReadStates } from '../utils/getReadStates';
109

1110
type UseLastReadDataParams<
1211
StreamChatGenerics extends DefaultStreamChatGenerics = DefaultStreamChatGenerics,
@@ -33,6 +32,6 @@ export const useLastReadData = <
3332
read,
3433
returnAllReadData,
3534
),
36-
[messages, read, userID],
35+
[messages, read, returnAllReadData, userID],
3736
);
3837
};

package/src/components/MessageList/hooks/useMessageList.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type { ChannelState, MessageResponse } from 'stream-chat';
22

3+
import { useLastReadData } from './useLastReadData';
4+
35
import { useChannelContext } from '../../../contexts/channelContext/ChannelContext';
46
import { useChatContext } from '../../../contexts/chatContext/ChatContext';
57
import {
@@ -11,7 +13,6 @@ import { useThreadContext } from '../../../contexts/threadContext/ThreadContext'
1113
import type { DefaultStreamChatGenerics } from '../../../types/types';
1214
import { getDateSeparators } from '../utils/getDateSeparators';
1315
import { getGroupStyles } from '../utils/getGroupStyles';
14-
import { useLastReadData } from './useLastReadData';
1516

1617
export type UseMessageListParams = {
1718
deletedMessagesVisibilityType?: DeletedMessagesVisibilityType;
@@ -79,9 +80,9 @@ export const useMessageList = <
7980
});
8081

8182
const readData = useLastReadData({
82-
userID: client.userID,
8383
messages: messageList,
8484
read: readList,
85+
userID: client.userID,
8586
});
8687

8788
const messagesWithStylesReadByAndDateSeparator = messageList

0 commit comments

Comments
 (0)