From e492b80fb8a08665a79d64b3febc411d380d76eb Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 26 Dec 2016 11:31:11 -0300 Subject: PLT-4893 remove channel handler in channel switcher (#4889) --- webapp/components/suggestion/switch_channel_provider.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'webapp/components') diff --git a/webapp/components/suggestion/switch_channel_provider.jsx b/webapp/components/suggestion/switch_channel_provider.jsx index 35ce4d578..301974b9a 100644 --- a/webapp/components/suggestion/switch_channel_provider.jsx +++ b/webapp/components/suggestion/switch_channel_provider.jsx @@ -24,13 +24,7 @@ class SwitchChannelSuggestion extends Suggestion { className += ' suggestion--selected'; } - let displayName = ''; - if (item.type === Constants.DM_CHANNEL) { - displayName = item.display_name; - } else { - displayName = item.display_name + ' (' + item.name + ')'; - } - + const displayName = item.display_name; let icon = null; if (item.type === Constants.OPEN_CHANNEL) { icon =
; -- cgit v1.2.3-1-g7c22