From cc1e123fb5576d7f695a45a5942c95b46ecae21d Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 17 Oct 2025 12:04:13 +0300 Subject: [PATCH] Quick fix for disappearing links (#9216) (#9218) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 910fd2b4493f3544ddfe45ec3476da498293b874) Co-authored-by: Daniel Espino GarcĂ­a --- app/screens/channel/header/channel_banner/channel_banner.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/screens/channel/header/channel_banner/channel_banner.tsx b/app/screens/channel/header/channel_banner/channel_banner.tsx index 8b5d3534b..4e9825c5d 100644 --- a/app/screens/channel/header/channel_banner/channel_banner.tsx +++ b/app/screens/channel/header/channel_banner/channel_banner.tsx @@ -75,7 +75,8 @@ export function ChannelBanner({bannerInfo, isTopItem}: Props) { }), [bannerInfo?.background_color, defaultHeight, style.container]); const markdownTextStyle = useMemo(() => { - const textStyle = getMarkdownTextStyles(theme); + // We do a shallow copy to avoid mutating the original object. + const textStyle = {...getMarkdownTextStyles(theme)}; // channel banner colors are theme independent. // If we let the link color being set by the theme, it will be unreadable in some cases.