From 7bc5f4e863b14febf26bb447b5267216d9d8ce42 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Wed, 29 Jul 2015 11:30:54 -0400
Subject: reset number of posts to fetch on channel switch and fresh page load

---
 web/react/utils/utils.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/utils/utils.jsx')

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');
-- 
cgit v1.2.3-1-g7c22

