diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-10-15 15:09:40 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-10-15 15:17:07 -0400 |
commit | 327b0b5a2119ae888c812f682b3934061b8f59bf (patch) | |
tree | d2b91e8649a68ec0b87e4e7349d29965a664b43a /web/react/components | |
parent | 4b99e1714029689f27ebf4cb078c60367b0594a4 (diff) | |
download | chat-327b0b5a2119ae888c812f682b3934061b8f59bf.tar.gz chat-327b0b5a2119ae888c812f682b3934061b8f59bf.tar.bz2 chat-327b0b5a2119ae888c812f682b3934061b8f59bf.zip |
Added an initial call to get all user preferences on page load
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/sidebar.jsx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index e7d90bb88..5ab0c4f9e 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -132,11 +132,7 @@ export default class Sidebar extends React.Component { SocketStore.addChangeListener(this.onSocketChange); PreferenceStore.addChangeListener(this.onChange); - AsyncClient.getDirectChannelPreferences(); - - if ($(window).width() > 768) { - $('.nav-pills__container').perfectScrollbar(); - } + $('.nav-pills__container').perfectScrollbar(); this.updateTitle(); this.updateUnreadIndicators(); |