[MM-52675] Use message_source in copy text action (#26674) (#26789)

This commit is contained in:
Aaron Hopkins 2024-04-22 12:45:06 +02:00 committed by GitHub
parent 4b934d2a62
commit 632b231283
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -221,7 +221,7 @@ export class DotMenuClass extends React.PureComponent<Props, State> {
};
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);
};