fix(search): respect scope in channel suggestions

This commit is contained in:
Hampus authored and GitHub committed 2026-08-26 23:06:07 +02:00
1 parent c504b68354
commit 5015452280
6 files changed
+155 -50

No files matched your search

@@ -9,14 +9,7 @@ import {Scroller} from '@app/features/ui/components/Scroller';
import {msg} from '@lingui/core/macro';
import {useLingui} from '@lingui/react/macro';
import type {IconProps} from '@phosphor-icons/react';
import {
ChatCenteredDotsIcon,
CheckIcon,
EnvelopeSimpleIcon,
GlobeIcon,
HashIcon,
UsersIcon,
} from '@phosphor-icons/react';
import {ChatCenteredDotsIcon, ChatCircleIcon, CheckIcon, GlobeIcon, HashIcon, UsersIcon} from '@phosphor-icons/react';
import {clsx} from 'clsx';
import type React from 'react';
@@ -26,7 +19,7 @@ const SEARCH_IN_DESCRIPTOR = msg({
});
const SCOPE_ICON_COMPONENTS: Record<MessageSearchScope, React.ComponentType<IconProps>> = {
current: HashIcon,
all_dms: EnvelopeSimpleIcon,
all_dms: ChatCircleIcon,
open_dms: ChatCenteredDotsIcon,
all_guilds: GlobeIcon,
all: UsersIcon,