summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-11-05 13:32:06 -0500
committerhmhealey <harrisonmhealey@gmail.com>2015-11-05 14:12:31 -0500
commite29342d4267c81a709cdc19fe992762ae468e0d9 (patch)
treef091678b4b55aa4fae0017ad9a4fadcd3db2b1fc /web/react/utils
parent52e75012c37f5af6a695995d3c133e63e2e4b725 (diff)
downloadchat-e29342d4267c81a709cdc19fe992762ae468e0d9.tar.gz
chat-e29342d4267c81a709cdc19fe992762ae468e0d9.tar.bz2
chat-e29342d4267c81a709cdc19fe992762ae468e0d9.zip
Moved public and private channels into separate sections in the search autocomplete
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/utils.jsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx
index 575b6d011..22826b150 100644
--- a/web/react/utils/utils.jsx
+++ b/web/react/utils/utils.jsx
@@ -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;
+}