mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Moved public and private channels into separate sections in the search autocomplete
This commit is contained in:
@@ -1125,3 +1125,12 @@ export function sortByDisplayName(a, b) {
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
export function getChannelTerm(channelType) {
|
||||
let channelTerm = 'Channel';
|
||||
if (channelType === Constants.PRIVATE_CHANNEL) {
|
||||
channelTerm = 'Group';
|
||||
}
|
||||
|
||||
return channelTerm;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user