From c7cf32ebb8e4258ca444e0d4b7b225a78675c505 Mon Sep 17 00:00:00 2001 From: Mattermost Build Date: Fri, 8 Jan 2021 19:06:42 +0100 Subject: [PATCH] [MM-31778]: fix false error message on channel join (#5098) (#5099) (cherry picked from commit c3f86d1797b5fe639b49d29aad2b3b6b4338b45a) Co-authored-by: Ashish Bhate --- app/components/markdown/markdown_link/markdown_link.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/markdown/markdown_link/markdown_link.js b/app/components/markdown/markdown_link/markdown_link.js index 7c5e64da9..67aa5ca77 100644 --- a/app/components/markdown/markdown_link/markdown_link.js +++ b/app/components/markdown/markdown_link/markdown_link.js @@ -59,7 +59,7 @@ export default class MarkdownLink extends PureComponent { if (match) { if (match.type === DeepLinkTypes.CHANNEL) { const {intl} = this.context; - this.props.actions.handleSelectChannelByName(match.channelName, match.teamName, errorBadChannel(intl)); + this.props.actions.handleSelectChannelByName(match.channelName, match.teamName, errorBadChannel.bind(null, intl)); } else if (match.type === DeepLinkTypes.PERMALINK) { onPermalinkPress(match.postId, match.teamName); }