diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-05 12:03:27 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-13 09:42:25 -0400 |
commit | 599644fb2fa75d1760420806c8c821959fc6b645 (patch) | |
tree | bd45794907dade690e9adc51736dc8797c79a3f5 /web/react/components/more_direct_channels.jsx | |
parent | 415f959614f6a3fd7fcb6551e32b722df2b015c5 (diff) | |
download | chat-599644fb2fa75d1760420806c8c821959fc6b645.tar.gz chat-599644fb2fa75d1760420806c8c821959fc6b645.tar.bz2 chat-599644fb2fa75d1760420806c8c821959fc6b645.zip |
Renamed show_hide preference to show
Diffstat (limited to 'web/react/components/more_direct_channels.jsx')
-rw-r--r-- | web/react/components/more_direct_channels.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web/react/components/more_direct_channels.jsx b/web/react/components/more_direct_channels.jsx index fc720e928..ed9c6fc58 100644 --- a/web/react/components/more_direct_channels.jsx +++ b/web/react/components/more_direct_channels.jsx @@ -3,6 +3,7 @@ var TeamStore = require('../stores/team_store.jsx'); var Client = require('../utils/client.jsx'); +var Constants = require('../utils/constants.jsx'); var AsyncClient = require('../utils/async_client.jsx'); var PreferenceStore = require('../stores/preference_store.jsx'); var utils = require('../utils/utils.jsx'); @@ -23,7 +24,8 @@ export default class MoreDirectChannels extends React.Component { } handleJoinDirectChannel(channel) { - const preference = PreferenceStore.setPreferenceWithAltId('direct_channels', 'show_hide', channel.teammate_id, 'true'); + const preference = PreferenceStore.setPreferenceWithAltId(Constants.Preferences.CATEGORY_DIRECT_CHANNELS, + Constants.Preferences.NAME_SHOW, channel.teammate_id, 'true'); AsyncClient.setPreferences([preference]); } |