diff --git a/web/chat/thread-list-provider.js b/web/chat/thread-list-provider.js --- a/web/chat/thread-list-provider.js +++ b/web/chat/thread-list-provider.js @@ -179,13 +179,24 @@ ); const threadFilter = activeTab === 'Muted' ? threadInBackgroundChatList : threadInHomeChatList; - const chatListDataWithoutFilter = getThreadListSearchResults( - chatListData, - searchText, - threadFilter, - threadSearchResults, - usersSearchResults, - loggedInUserInfo, + const chatListDataWithoutFilter = React.useMemo( + () => + getThreadListSearchResults( + chatListData, + searchText, + threadFilter, + threadSearchResults, + usersSearchResults, + loggedInUserInfo, + ), + [ + chatListData, + searchText, + threadFilter, + threadSearchResults, + usersSearchResults, + loggedInUserInfo, + ], ); const activeTopLevelChatThreadItem = useChatThreadItem( activeTopLevelThreadInfo,