summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorenahum <nahumhbl@gmail.com>2016-12-26 11:31:11 -0300
committerChristopher Speller <crspeller@gmail.com>2016-12-26 09:31:11 -0500
commite492b80fb8a08665a79d64b3febc411d380d76eb (patch)
tree4ef3d7cc1027f4e5e221e226e1d00b7626522b9e /webapp
parent47581e696492566684620b42a7ad476ec5f4c323 (diff)
downloadchat-e492b80fb8a08665a79d64b3febc411d380d76eb.tar.gz
chat-e492b80fb8a08665a79d64b3febc411d380d76eb.tar.bz2
chat-e492b80fb8a08665a79d64b3febc411d380d76eb.zip
PLT-4893 remove channel handler in channel switcher (#4889)
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/suggestion/switch_channel_provider.jsx8
1 files changed, 1 insertions, 7 deletions
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 = <div className='status'><i className='fa fa-globe'/></div>;