diff options
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); |