From 5c13d044c6499ae761ccdaeb0a370b0a94ef59b6 Mon Sep 17 00:00:00 2001 From: MyNameIsBatman Date: Sat, 17 Sep 2022 00:19:11 -0300 Subject: [PATCH] Make search lookup names too --- src/components/chat-history/ChatHistoryView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/chat-history/ChatHistoryView.tsx b/src/components/chat-history/ChatHistoryView.tsx index 527ecf6b..063385fe 100644 --- a/src/components/chat-history/ChatHistoryView.tsx +++ b/src/components/chat-history/ChatHistoryView.tsx @@ -19,7 +19,7 @@ export const ChatHistoryView: FC<{}> = props => { if (searchText.length === 0) return chatHistory; - return chatHistory.filter((i) => i.message && i.message.includes(searchText)); + return chatHistory.filter((i) => (i.message && i.message.includes(searchText)) || i.name.includes(searchText)); }, [ chatHistory, searchText ]); const RowRenderer: ListRowRenderer = (props: ListRowProps) =>