summaryrefslogtreecommitdiffstats
path: root/web/react/components/sidebar.jsx
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2015-10-16 08:16:40 -0400
committerChristopher Speller <crspeller@gmail.com>2015-10-16 08:16:40 -0400
commit099d8538770271bfc41416b871a899362bf9a086 (patch)
tree103ecc42fe274694d387a4e5969f860767594139 /web/react/components/sidebar.jsx
parent269476d694f425764dbe0cccd4eaa3f23956ba61 (diff)
parent327b0b5a2119ae888c812f682b3934061b8f59bf (diff)
downloadchat-099d8538770271bfc41416b871a899362bf9a086.tar.gz
chat-099d8538770271bfc41416b871a899362bf9a086.tar.bz2
chat-099d8538770271bfc41416b871a899362bf9a086.zip
Merge pull request #1079 from hmhealey/initprefs
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 7a209de2b..89506c028 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();