mirror of
https://github.com/flarum/framework.git
synced 2025-03-23 05:35:15 +08:00
Fixing posts not appearing automatically (#32)
This commit is contained in:
parent
7b636600ee
commit
fa2cb91182
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user