Skip to content

Commit a7d75a7

Browse files
committed
chore: apply review when clicking the subtitle
1 parent 484199d commit a7d75a7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/uikit-react-native/src/domain/groupChannel/component/GroupChannelMessageList.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const GroupChannelMessageList = (props: GroupChannelProps['MessageList']) => {
2424
const id = useUniqHandlerId('GroupChannelMessageList');
2525
const isChangedSearchItem = useMemo(() => {
2626
return !!props.searchItem;
27-
}, [props.searchItem]);
27+
}, [props.searchItem?.startingPoint]);
2828

2929
const scrollToMessageWithCreatedAt = useFreshCallback(
3030
(createdAt: number, focusAnimated: boolean, timeout: number): boolean => {

packages/uikit-react-native/src/fragments/createGroupChannelFragment.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const createGroupChannelFragment = (initModule?: Partial<GroupChannelModule>): G
8686

8787
useEffect(() => {
8888
setInternalSearchItem(searchItem);
89-
}, [searchItem]);
89+
}, [searchItem?.startingPoint]);
9090

9191
const {
9292
loading,

0 commit comments

Comments
 (0)