summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2015-08-02 08:59:07 -0800
committerCorey Hulen <corey@hulen.com>2015-08-02 08:59:07 -0800
commit1f417368adf044baa9c6b6a24fe919bf5235346f (patch)
tree5e947ffb08912ba1d7324df85d4a506454b29397 /web/react/components
parent41f96636d6a92f622518271f9ea7dd66c8c84e47 (diff)
parent0c627913f775044b382f9bc115244e4eb40f4833 (diff)
downloadchat-1f417368adf044baa9c6b6a24fe919bf5235346f.tar.gz
chat-1f417368adf044baa9c6b6a24fe919bf5235346f.tar.bz2
chat-1f417368adf044baa9c6b6a24fe919bf5235346f.zip
Merge pull request #276 from mattermost/mm-1688
MM-1688 reset number of posts to fetch on channel switch and fresh page load
Diffstat (limited to 'web/react/components')
-rw-r--r--web/react/components/channel_loader.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/channel_loader.jsx b/web/react/components/channel_loader.jsx
index b7cb248db..6b80f6012 100644
--- a/web/react/components/channel_loader.jsx
+++ b/web/react/components/channel_loader.jsx
@@ -8,6 +8,7 @@
var BrowserStore = require('../stores/browser_store.jsx');
var AsyncClient = require('../utils/async_client.jsx');
var SocketStore = require('../stores/socket_store.jsx');
+var ChannelStore = require('../stores/channel_store.jsx');
var Constants = require('../utils/constants.jsx');
module.exports = React.createClass({
@@ -15,7 +16,7 @@ module.exports = React.createClass({
/* Start initial aysnc loads */
AsyncClient.getMe();
- AsyncClient.getPosts(true);
+ AsyncClient.getPosts(true, ChannelStore.getCurrentId(), Constants.POST_CHUNK_SIZE);
AsyncClient.getChannels(true, true);
AsyncClient.getChannelExtraInfo(true);
AsyncClient.findTeams();