From e99cc69618cc2927a5c002acee273077e150c5e2 Mon Sep 17 00:00:00 2001 From: Harshil Sharma Date: Fri, 20 Feb 2026 14:41:43 +0530 Subject: [PATCH] fixed channel seelection double selection bug --- .../suggestion/channel_mention_provider.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/webapp/channels/src/components/suggestion/channel_mention_provider.tsx b/webapp/channels/src/components/suggestion/channel_mention_provider.tsx index 49279827c1a..c3b8018d5ee 100644 --- a/webapp/channels/src/components/suggestion/channel_mention_provider.tsx +++ b/webapp/channels/src/components/suggestion/channel_mention_provider.tsx @@ -108,7 +108,7 @@ export const ChannelMentionSuggestion = React.forwardRef getChannelMentionTerm(channel, useSecureURLs)); +export function myChannelsGroup(items: Channel[]) { + const terms = items.map((channel) => getChannelMentionTerm(channel)); return { key: 'myChannels', @@ -312,7 +311,7 @@ export function myChannelsGroup(items: Channel[], useSecureURLs = false) { }; } -export function moreChannelsGroup(items: Channel[], loading: boolean, useSecureURLs = false) { +export function moreChannelsGroup(items: Channel[], loading: boolean) { const label = defineMessage({id: 'suggestion.mention.morechannels', defaultMessage: 'Other Channels'}); if (loading) { @@ -327,7 +326,7 @@ export function moreChannelsGroup(items: Channel[], loading: boolean, useSecureU }; } - const terms = items.map((channel) => getChannelMentionTerm(channel, useSecureURLs)); + const terms = items.map((channel) => getChannelMentionTerm(channel)); return { key: 'moreChannels',