summaryrefslogtreecommitdiffstats
path: root/web/react/utils/utils.jsx
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-07-29 11:30:54 -0400
committerJoramWilander <jwawilander@gmail.com>2015-07-29 11:30:54 -0400
commit7bc5f4e863b14febf26bb447b5267216d9d8ce42 (patch)
treeebd998420f08f2144616c411f5e7c4314bee1d6c /web/react/utils/utils.jsx
parent54265271fa16c624570ff89a26ae8596cf0fafc7 (diff)
downloadchat-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.jsx2
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');