FIX: Don't append posts directly to the stream unless all posts are loaded.
This commit is contained in:
parent
fba0958486
commit
f7b3856101
|
@ -413,7 +413,9 @@ Discourse.PostStream = Em.Object.extend({
|
|||
@param {Discourse.Post} the post we saved in the stream.
|
||||
**/
|
||||
commitPost: function(post) {
|
||||
this.appendPost(post);
|
||||
if (this.get('loadedAllPosts')) {
|
||||
this.appendPost(post);
|
||||
}
|
||||
this.get('stream').addObject(post.get('id'));
|
||||
this.set('stagingPost', false);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue