FIX: stop clearing title by mistake

FIX: stop clearing title by mistake

b180e6e737900b caused a short lived regression.

This code is very deliberate about ensuring originalTitle is set correctly

diff --git a/app/assets/javascripts/discourse/app/models/composer.js b/app/assets/javascripts/discourse/app/models/composer.js
index e02f17c..0f88c24 100644
--- a/app/assets/javascripts/discourse/app/models/composer.js
+++ b/app/assets/javascripts/discourse/app/models/composer.js
@@ -785,18 +785,16 @@ const Composer = RestModel.extend({
       });
     }
 
-    if (this.get("canEditTitle")) {
-      this.set("originalTitle", "");
-      this.set("title", "");
-    }
-
     if (opts.title) {
       this.set("title", opts.title);
     }
 
     this.set("originalText", opts.draft ? "" : this.reply);
 
-    if (this.editingFirstPost) {
+    if (this.canEditTitle) {
+      if (isEmpty(this.title) && this.title !== "") {
+        this.set("title", "");
+      }
       this.set("originalTitle", this.title);
     }
 

GitHub sha: 77f5bb14