From ce7c3bfc14c873b952bb4242d2d2b9ac5ae466d6 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 21 Feb 2017 11:38:57 -0500 Subject: [PATCH] FIX: refresh header if message bus updates topic --- app/assets/javascripts/discourse/controllers/topic.js.es6 | 1 + 1 file changed, 1 insertion(+) diff --git a/app/assets/javascripts/discourse/controllers/topic.js.es6 b/app/assets/javascripts/discourse/controllers/topic.js.es6 index ce128f9fdfa..ce13719f3be 100644 --- a/app/assets/javascripts/discourse/controllers/topic.js.es6 +++ b/app/assets/javascripts/discourse/controllers/topic.js.es6 @@ -912,6 +912,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, { if (data.reload_topic) { topic.reload().then(() => { this.send('postChangedRoute', topic.get('post_number') || 1); + this.appEvents.trigger('header:show-topic', topic); }); } else { if (topic.get('isPrivateMessage') &&