mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-28 02:36:08 +08:00
PLT-4893 remove channel handler in channel switcher (#4889)
This commit is contained in:
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>;
|
||||
|
||||
Reference in New Issue
Block a user