From fa2cb911827e24b3dfb159ad3dbbac6e350a9b20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Ca=C5=82ka?= Date: Sat, 7 Aug 2021 12:24:00 +0200 Subject: [PATCH] Fixing posts not appearing automatically (#32) --- extensions/pusher/js/src/forum/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/pusher/js/src/forum/index.js b/extensions/pusher/js/src/forum/index.js index 27eecd196..73fa3e7be 100644 --- a/extensions/pusher/js/src/forum/index.js +++ b/extensions/pusher/js/src/forum/index.js @@ -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));