Make search lookup names too

This commit is contained in:
MyNameIsBatman 2022-09-17 00:19:11 -03:00
parent 81407bb853
commit 5c13d044c6

View File

@ -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) =>