mirror of
https://github.com/flarum/core.git
synced 2025-08-02 22:47:33 +02:00
Fixing posts not appearing automatically (#32)
This commit is contained in:
@@ -122,7 +122,7 @@ app.initializers.add('flarum-pusher', () => {
|
|||||||
const oldCount = this.discussion.commentCount();
|
const oldCount = this.discussion.commentCount();
|
||||||
|
|
||||||
app.store.find('discussions', this.discussion.id()).then(() => {
|
app.store.find('discussions', this.discussion.id()).then(() => {
|
||||||
this.stream.update();
|
this.stream.update().then(m.redraw);
|
||||||
|
|
||||||
if (!document.hasFocus()) {
|
if (!document.hasFocus()) {
|
||||||
app.setTitleCount(Math.max(0, this.discussion.commentCount() - oldCount));
|
app.setTitleCount(Math.max(0, this.discussion.commentCount() - oldCount));
|
||||||
|
Reference in New Issue
Block a user