summaryrefslogtreecommitdiffstats
path: root/web/react/components/sidebar.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-10-15 15:09:40 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-10-15 15:17:07 -0400
commit327b0b5a2119ae888c812f682b3934061b8f59bf (patch)
treed2b91e8649a68ec0b87e4e7349d29965a664b43a /web/react/components/sidebar.jsx
parent4b99e1714029689f27ebf4cb078c60367b0594a4 (diff)
downloadchat-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/sidebar.jsx')
-rw-r--r--web/react/components/sidebar.jsx6
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();