[MM-31778]: fix false error message on channel join (#5098) (#5099)

(cherry picked from commit c3f86d1797)

Co-authored-by: Ashish Bhate <bhate.ashish@gmail.com>
This commit is contained in:
Mattermost Build 2021-01-08 19:06:42 +01:00 committed by GitHub
parent 142a04fac5
commit c7cf32ebb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}