1
0
mirror of https://github.com/flarum/core.git synced 2025-07-30 21:20:24 +02:00

Fixing posts not appearing automatically (#32)

This commit is contained in:
Rafał Całka
2021-08-07 12:24:00 +02:00
committed by GitHub
parent 7b636600ee
commit fa2cb91182

View File

@@ -122,7 +122,7 @@ app.initializers.add('flarum-pusher', () => {
const oldCount = this.discussion.commentCount();
app.store.find('discussions', this.discussion.id()).then(() => {
this.stream.update();
this.stream.update().then(m.redraw);
if (!document.hasFocus()) {
app.setTitleCount(Math.max(0, this.discussion.commentCount() - oldCount));