diff --git a/package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx b/package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx index 3a7a2640dd..641f7c4c19 100644 --- a/package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx +++ b/package/src/components/ChannelPreview/ChannelPreviewMessenger.tsx @@ -212,6 +212,7 @@ export const ChannelPreviewMessenger = < props: ChannelPreviewMessengerProps, ) => { const { + forceUpdate, maxUnreadCount, onSelect, PreviewAvatar, @@ -224,6 +225,7 @@ export const ChannelPreviewMessenger = < return ( , ) => { const { client } = useChatContext(); - const { forceUpdate } = useChannelsContext(); const currentUserId = client.userID; const members = Object.values(channel.state.members).filter( @@ -50,7 +48,7 @@ export const useChannelPreviewDisplayPresence = < useEffect(() => { setDisplayPresence(getChannelPreviewDisplayPresence(channel, client)); - }, [channel, channelMemberOnline, client, forceUpdate]); + }, [channel, channelMemberOnline, client]); return displayPresence; };