diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-13 15:18:01 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-13 15:36:58 -0400 |
commit | 97b2f6ffe7fa09a2188163740865322582b00b59 (patch) | |
tree | 69c11911d8c364b8d6bb31c2723a8f046b8b61e3 /web/react/components | |
parent | 2a39e8dbfab8506b09d0d030f87cac4c079b975a (diff) | |
download | chat-97b2f6ffe7fa09a2188163740865322582b00b59.tar.gz chat-97b2f6ffe7fa09a2188163740865322582b00b59.tar.bz2 chat-97b2f6ffe7fa09a2188163740865322582b00b59.zip |
Made further changes based on feedback
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/sidebar.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index 82fc828eb..1caf4caa5 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -310,7 +310,9 @@ export default class Sidebar extends React.Component { this.isLeaving.set(channel.id, true); const preference = PreferenceStore.setPreference(Constants.Preferences.CATEGORY_DIRECT_CHANNEL_SHOW, channel.teammate_id, 'false'); - AsyncClient.savePreferences( + + // bypass AsyncClient since we've already saved the updated preferences + Client.savePreferences( [preference], () => { this.isLeaving.set(channel.id, false); |