mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Make search lookup names too
This commit is contained in:
parent
81407bb853
commit
5c13d044c6
@ -19,7 +19,7 @@ export const ChatHistoryView: FC<{}> = props =>
|
|||||||
{
|
{
|
||||||
if (searchText.length === 0) return chatHistory;
|
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 ]);
|
}, [ chatHistory, searchText ]);
|
||||||
|
|
||||||
const RowRenderer: ListRowRenderer = (props: ListRowProps) =>
|
const RowRenderer: ListRowRenderer = (props: ListRowProps) =>
|
||||||
|
Loading…
Reference in New Issue
Block a user