Skip to content

Commit

Permalink
Fix search in StoriesPane
Browse files Browse the repository at this point in the history
Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
  • Loading branch information
automated-signal and indutny-signal committed Oct 20, 2022
1 parent 8ec0664 commit 2673978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/components/StoriesPane.tsx
Expand Up @@ -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
);
Expand Down

0 comments on commit 2673978

Please sign in to comment.