Fix search in StoriesPane

This commit is contained in:
Fedor Indutny 2022-10-19 15:56:55 -07:00 committed by GitHub
parent f5e94f2069
commit 096b6201e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ import { useRestoreFocus } from '../hooks/useRestoreFocus';
const FUSE_OPTIONS: Fuse.IFuseOptions<ConversationStoryType> = {
getFn: (story, path) => {
if (path === 'searchNames') {
if (path[0] === 'searchNames' || path === 'searchNames') {
return [story.storyView.sender.title, story.storyView.sender.name].filter(
isNotNil
);