We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5586502 commit 531d649Copy full SHA for 531d649
app/assets/javascripts/discourse/models/composer.js.es6
@@ -686,6 +686,10 @@ const Composer = RestModel.extend({
686
}).catch(throwAjaxError(function() {
687
if (postStream) {
688
postStream.undoPost(createdPost);
689
+
690
+ if (post) {
691
+ post.set('reply_count', post.get('reply_count') - 1);
692
+ }
693
}
694
Ember.run.next(() => composer.set('composeState', OPEN));
695
}));
0 commit comments