From 3b4d7d568b25d125730c3dea4c2fa645ff89dab6 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 27 Nov 2025 07:43:10 -0500 Subject: [PATCH] refac --- src/lib/components/channel/MessageInput/MentionList.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/channel/MessageInput/MentionList.svelte b/src/lib/components/channel/MessageInput/MentionList.svelte index f1863e6b45..4272a5650d 100644 --- a/src/lib/components/channel/MessageInput/MentionList.svelte +++ b/src/lib/components/channel/MessageInput/MentionList.svelte @@ -111,7 +111,9 @@ if (channelSuggestions) { // Add a dummy channel item _channels = [ - ...$channels.map((c) => ({ type: 'channel', id: c.id, label: c.name, data: c })) + ...$channels + .filter((c) => c?.type !== 'dm') + .map((c) => ({ type: 'channel', id: c.id, label: c.name, data: c })) ]; } else { if (userSuggestions) {