diff --git a/app/assets/javascripts/discourse/app/controllers/composer.js b/app/assets/javascripts/discourse/app/controllers/composer.js index 9271f2bb919..211b2f0b61e 100644 --- a/app/assets/javascripts/discourse/app/controllers/composer.js +++ b/app/assets/javascripts/discourse/app/controllers/composer.js @@ -805,6 +805,10 @@ export default Controller.extend({ this.appEvents.trigger("post:highlight", result.payload.post_number); } + if (this.get("model.draftKey") === Composer.NEW_TOPIC_KEY) { + this.currentUser.set("has_topic_draft", false); + } + if (result.responseJson.route_to) { this.destroyDraft(); if (result.responseJson.message) {