diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-08-11 11:55:23 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-11 12:14:58 -0400 |
commit | 4127c2b258e49e6bb555340d2a5b638c50fd90a2 (patch) | |
tree | de7fdd90e857f978082d6d3799c2a1ee4ac56c7b /web/react/components | |
parent | e52405f47ad7faab0a7a100a622eae2fe420a9db (diff) | |
download | chat-4127c2b258e49e6bb555340d2a5b638c50fd90a2.tar.gz chat-4127c2b258e49e6bb555340d2a5b638c50fd90a2.tar.bz2 chat-4127c2b258e49e6bb555340d2a5b638c50fd90a2.zip |
format channel_store to more closely match style guide and sort channels in channel store over sidebar
Diffstat (limited to 'web/react/components')
-rw-r--r-- | web/react/components/sidebar.jsx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/web/react/components/sidebar.jsx b/web/react/components/sidebar.jsx index 46dfc1200..fb282e680 100644 --- a/web/react/components/sidebar.jsx +++ b/web/react/components/sidebar.jsx @@ -113,22 +113,9 @@ function getStateFromStores() { }); } - var channels = ChannelStore.getAll(); - if (channels) { - channels.sort(function chanSort(a, b) { - if (a.display_name.toLowerCase() < b.display_name.toLowerCase()) { - return -1; - } - if (a.display_name.toLowerCase() > b.display_name.toLowerCase()) { - return 1; - } - return 0; - }); - } - return { activeId: currentId, - channels: channels, + channels: ChannelStore.getAll(), members: members, showDirectChannels: showDirectChannels, hideDirectChannels: readDirectChannels |