FIX: Don't append posts directly to the stream unless all posts are loaded.

This commit is contained in:
Robin Ward 2014-02-14 14:02:43 -05:00
parent fba0958486
commit f7b3856101

View file

@ -413,7 +413,9 @@ Discourse.PostStream = Em.Object.extend({
@param {Discourse.Post} the post we saved in the stream.
**/
commitPost: function(post) {
if (this.get('loadedAllPosts')) {
this.appendPost(post);
}
this.get('stream').addObject(post.get('id'));
this.set('stagingPost', false);
},