FIX: refresh post stream after in-place post updates (#13384)

FIX: refresh post stream after in-place post updates (#13384)

Changing the staged attribute on a post means we also need to re-render.

Previously certain edits would not issue a refresh leaving a post greyed out.

diff --git a/app/assets/javascripts/discourse/app/models/composer.js b/app/assets/javascripts/discourse/app/models/composer.js
index 3b6c891..8aa68da 100644
--- a/app/assets/javascripts/discourse/app/models/composer.js
+++ b/app/assets/javascripts/discourse/app/models/composer.js
@@ -992,6 +992,7 @@ const Composer = RestModel.extend({
       .catch(rollback)
       .finally(() => {
         post.set("staged", false);
+        this.appEvents.trigger("post-stream:refresh", { id: post.id });
       });
   },
 

GitHub sha: cc1e73b8e49e0c00def28d8635ace684521d36f0

This commit appears in #13384 which was approved by lis2. It was merged by SamSaffron.