Unverified Commit c42621bc authored by Mattermost Build's avatar Mattermost Build Committed by GitHub
Browse files

remove URL slug for GMs in channel switcher (#8016) (#8020)

(cherry picked from commit 301dbbb0

)
Co-authored-by: default avatarMichel Engelen <32863416+michelengelen@users.noreply.github.com>
parent 62730225
......@@ -191,6 +191,9 @@ class SwitchChannelSuggestion extends Suggestion {
</React.Fragment>
);
}
} else if (channel.type === Constants.GM_CHANNEL) {
// remove the slug from the option
displayName = channel.display_name;
}
let sharedIcon = null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment