PLT-4893 remove channel handler in channel switcher (#4889)

This commit is contained in:
enahum
2016-12-26 09:31:11 -05:00
committed by Christopher Speller
parent 47581e6964
commit e492b80fb8
@@ -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>;