diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-07-29 11:30:54 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-07-29 11:30:54 -0400 |
commit | 7bc5f4e863b14febf26bb447b5267216d9d8ce42 (patch) | |
tree | ebd998420f08f2144616c411f5e7c4314bee1d6c /web/react/utils/utils.jsx | |
parent | 54265271fa16c624570ff89a26ae8596cf0fafc7 (diff) | |
download | chat-7bc5f4e863b14febf26bb447b5267216d9d8ce42.tar.gz chat-7bc5f4e863b14febf26bb447b5267216d9d8ce42.tar.bz2 chat-7bc5f4e863b14febf26bb447b5267216d9d8ce42.zip |
reset number of posts to fetch on channel switch and fresh page load
Diffstat (limited to 'web/react/utils/utils.jsx')
-rw-r--r-- | web/react/utils/utils.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/utils/utils.jsx b/web/react/utils/utils.jsx index 8a4d92b85..2f9170f8d 100644 --- a/web/react/utils/utils.jsx +++ b/web/react/utils/utils.jsx @@ -720,7 +720,7 @@ module.exports.switchChannel = function(channel, teammate_name) { AsyncClient.getChannels(true, true, true); AsyncClient.getChannelExtraInfo(true); - AsyncClient.getPosts(true, channel.id); + AsyncClient.getPosts(true, channel.id, Constants.POST_CHUNK_SIZE); $('.inner__wrap').removeClass('move--right'); $('.sidebar--left').removeClass('move--right'); |