From c3f86d1797b5fe639b49d29aad2b3b6b4338b45a Mon Sep 17 00:00:00 2001 From: Ashish Bhate Date: Fri, 8 Jan 2021 23:26:09 +0530 Subject: [PATCH] [MM-31778]: fix false error message on channel join (#5098) --- 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); }