From 632b2312834ac5d7ae44b433428294a5b9b455d0 Mon Sep 17 00:00:00 2001 From: Aaron Hopkins <97379449+gitairman@users.noreply.github.com> Date: Mon, 22 Apr 2024 12:45:06 +0200 Subject: [PATCH] [MM-52675] Use message_source in copy text action (#26674) (#26789) --- webapp/channels/src/components/dot_menu/dot_menu.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/channels/src/components/dot_menu/dot_menu.tsx b/webapp/channels/src/components/dot_menu/dot_menu.tsx index 36581e23d6..39feec9fed 100644 --- a/webapp/channels/src/components/dot_menu/dot_menu.tsx +++ b/webapp/channels/src/components/dot_menu/dot_menu.tsx @@ -221,7 +221,7 @@ export class DotMenuClass extends React.PureComponent { }; copyText = (e: ChangeEvent) => { - Utils.copyToClipboard(this.props.post.message); + Utils.copyToClipboard(this.props.post.message_source || this.props.post.message); trackDotMenuEvent(e, TELEMETRY_LABELS.COPY_TEXT); };