summaryrefslogtreecommitdiffstats
path: root/web/react/utils
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-05 12:03:27 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-13 09:42:25 -0400
commit599644fb2fa75d1760420806c8c821959fc6b645 (patch)
treebd45794907dade690e9adc51736dc8797c79a3f5 /web/react/utils
parent415f959614f6a3fd7fcb6551e32b722df2b015c5 (diff)
downloadchat-599644fb2fa75d1760420806c8c821959fc6b645.tar.gz
chat-599644fb2fa75d1760420806c8c821959fc6b645.tar.bz2
chat-599644fb2fa75d1760420806c8c821959fc6b645.zip
Renamed show_hide preference to show
Diffstat (limited to 'web/react/utils')
-rw-r--r--web/react/utils/async_client.jsx4
-rw-r--r--web/react/utils/constants.jsx6
2 files changed, 7 insertions, 3 deletions
diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx
index d665dfc94..a0ccccd88 100644
--- a/web/react/utils/async_client.jsx
+++ b/web/react/utils/async_client.jsx
@@ -645,8 +645,8 @@ export function getDirectChannels() {
callTracker.getDirectChannels = utils.getTimestamp();
client.getPreferencesByName(
- 'direct_channels',
- 'show_hide',
+ Constants.Preferences.CATEGORY_DIRECT_CHANNELS,
+ Constants.Preferences.NAME_SHOW,
(data, textStatus, xhr) => {
callTracker.getDirectChannels = 0;
diff --git a/web/react/utils/constants.jsx b/web/react/utils/constants.jsx
index 56c47a244..a576b9098 100644
--- a/web/react/utils/constants.jsx
+++ b/web/react/utils/constants.jsx
@@ -286,5 +286,9 @@ module.exports = {
id: 'mentionHighlightLink',
uiName: 'Mention Highlight Link'
}
- ]
+ ],
+ Preferences: {
+ CATEGORY_DIRECT_CHANNELS: 'direct_channels',
+ NAME_SHOW: 'show'
+ }
};