Merge pull request #469 from mattermost/mm-1699

MM-1699 Refactored post handling/updating on both the client and server
Этот коммит содержится в:
Christopher Speller
2015-08-27 11:22:19 -04:00
родитель ea4beb7c45 041d89b85a
Коммит e1c09605dc
28 изменённых файлов: 1643 добавлений и 902 удалений

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

@@ -83,7 +83,7 @@ module.exports = React.createClass({
client.createPost(post, channel,
function(data) {
this.resizePostHolder();
AsyncClient.getPosts(true);
AsyncClient.getPosts();
var member = ChannelStore.getMember(channel.id);
member.msg_count = channel.total_msg_count;
@@ -113,8 +113,6 @@ module.exports = React.createClass({
}.bind(this)
);
}
$('.post-list-holder-by-time').perfectScrollbar('update');
},
componentDidUpdate: function() {
this.resizePostHolder();