Moved public and private channels into separate sections in the search autocomplete

This commit is contained in:
hmhealey
2015-11-05 13:32:06 -05:00
parent 52e75012c3
commit e29342d426
3 changed files with 78 additions and 40 deletions

View File

@@ -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;
}