From 096b6201e2766a9e85154ccc8a071a4568319f42 Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 19 Oct 2022 15:56:55 -0700 Subject: [PATCH] Fix search in StoriesPane --- ts/components/StoriesPane.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/components/StoriesPane.tsx b/ts/components/StoriesPane.tsx index 2356915820..884cb728f1 100644 --- a/ts/components/StoriesPane.tsx +++ b/ts/components/StoriesPane.tsx @@ -29,7 +29,7 @@ import { useRestoreFocus } from '../hooks/useRestoreFocus'; const FUSE_OPTIONS: Fuse.IFuseOptions = { getFn: (story, path) => { - if (path === 'searchNames') { + if (path[0] === 'searchNames' || path === 'searchNames') { return [story.storyView.sender.title, story.storyView.sender.name].filter( isNotNil );