Merge pull request #495 from mattermost/minor-post-change

If we don't have any posts for a channel, pull page rather than pulling latest
Этот коммит содержится в:
Christopher Speller
2015-08-27 13:14:56 -04:00
родитель bb0d95eff9 a6c7fe76a5
Коммит 0f06599763

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

@@ -412,6 +412,11 @@ function getPosts(id) {
return;
}
if (PostStore.getCurrentPosts() == null) {
module.exports.getPostsPage(true, id, Constants.POST_CHUNK_SIZE);
return;
}
var latestUpdate = PostStore.getLatestUpdate(channelId);
callTracker['getPosts_' + channelId] = utils.getTimestamp();