Merge pull request #276 from mattermost/mm-1688

MM-1688 reset number of posts to fetch on channel switch and fresh page load
Этот коммит содержится в:
Corey Hulen
2015-08-02 08:59:07 -08:00
родитель 41f96636d6 0c627913f7
Коммит 1f417368ad
4 изменённых файлов: 13 добавлений и 5 удалений

Просмотреть файл

@@ -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();