From 3a13dc2d5dd335b05a60d2ff9b032b7ae686bb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20V=C3=A9lez?= Date: Wed, 8 Jan 2025 15:58:17 -0500 Subject: [PATCH] MM-61411 - fix incorrect linking case sensitive issue (#29683) --- webapp/channels/src/components/post_view/index.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/webapp/channels/src/components/post_view/index.ts b/webapp/channels/src/components/post_view/index.ts index c4f6bdf71c..76f7049e9c 100644 --- a/webapp/channels/src/components/post_view/index.ts +++ b/webapp/channels/src/components/post_view/index.ts @@ -25,10 +25,12 @@ export const isChannelLoading = (params: RouteViewParams, channel?: Channel, tea return false; } + const identifier = params.identifier?.toLowerCase(); + if (channel && team) { - if (channel.type !== Constants.DM_CHANNEL && channel.name !== params.identifier) { + if (channel.type !== Constants.DM_CHANNEL && channel.name !== identifier) { return true; - } else if (channel.type === Constants.DM_CHANNEL && teammate && params.identifier !== `@${teammate.username}`) { + } else if (channel.type === Constants.DM_CHANNEL && teammate && identifier !== `@${teammate.username}`) { return true; }