summaryrefslogtreecommitdiffstats
path: root/web/react/utils/async_client.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-16 09:12:30 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-16 09:12:30 -0700
commit8b2d7f391aedeb5d6bd6490b92bdadf5050e1c73 (patch)
tree84e426d92eccf017f0fd5ccd22815a2139bd6e44 /web/react/utils/async_client.jsx
parent6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2 (diff)
parent9c045f0d4bdf254f57b94356fd2f5f2a2408ed03 (diff)
downloadchat-8b2d7f391aedeb5d6bd6490b92bdadf5050e1c73.tar.gz
chat-8b2d7f391aedeb5d6bd6490b92bdadf5050e1c73.tar.bz2
chat-8b2d7f391aedeb5d6bd6490b92bdadf5050e1c73.zip
Fixing merge
Diffstat (limited to 'web/react/utils/async_client.jsx')
-rw-r--r--web/react/utils/async_client.jsx15
1 files changed, 7 insertions, 8 deletions
diff --git a/web/react/utils/async_client.jsx b/web/react/utils/async_client.jsx
index 379c2fc19..fb7631159 100644
--- a/web/react/utils/async_client.jsx
+++ b/web/react/utils/async_client.jsx
@@ -639,16 +639,15 @@ export function getMyTeam() {
);
}
-export function getDirectChannelPreferences() {
- if (isCallInProgress('getDirectChannelPreferences')) {
+export function getAllPreferences() {
+ if (isCallInProgress('getAllPreferences')) {
return;
}
- callTracker.getDirectChannelPreferences = utils.getTimestamp();
- client.getPreferenceCategory(
- Constants.Preferences.CATEGORY_DIRECT_CHANNEL_SHOW,
+ callTracker.getAllPreferences = utils.getTimestamp();
+ client.getAllPreferences(
(data, textStatus, xhr) => {
- callTracker.getDirectChannelPreferences = 0;
+ callTracker.getAllPreferences = 0;
if (xhr.status === 304 || !data) {
return;
@@ -660,8 +659,8 @@ export function getDirectChannelPreferences() {
});
},
(err) => {
- callTracker.getDirectChannelPreferences = 0;
- dispatchError(err, 'getDirectChannelPreferences');
+ callTracker.getAllPreferences = 0;
+ dispatchError(err, 'getAllPreferences');
}
);
}