mirror of
https://github.com/discourse/discourse.git
synced 2025-02-01 01:47:31 +08:00
FIX: refresh header if message bus updates topic
This commit is contained in:
parent
046cbad10b
commit
ce7c3bfc14
|
@ -912,6 +912,7 @@ export default Ember.Controller.extend(SelectedPostsCount, BufferedContent, {
|
||||||
if (data.reload_topic) {
|
if (data.reload_topic) {
|
||||||
topic.reload().then(() => {
|
topic.reload().then(() => {
|
||||||
this.send('postChangedRoute', topic.get('post_number') || 1);
|
this.send('postChangedRoute', topic.get('post_number') || 1);
|
||||||
|
this.appEvents.trigger('header:show-topic', topic);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
if (topic.get('isPrivateMessage') &&
|
if (topic.get('isPrivateMessage') &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user