From 6b562194ff0e4025c3c4d54b37fc2dd4fa07ff97 Mon Sep 17 00:00:00 2001 From: Bastard Operator Date: Fri, 25 Dec 2020 18:53:20 +0100 Subject: [PATCH] Temporary way to update chat feed on new message (should be improved) --- static/fedilove-no-react.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/static/fedilove-no-react.js b/static/fedilove-no-react.js index ea20cf1f..b2122dbf 100644 --- a/static/fedilove-no-react.js +++ b/static/fedilove-no-react.js @@ -87,7 +87,9 @@ function api_send_message(dom) { } function fedilove_on_notification_event() { - alert('it worked!!'); + if ($('div.the-list > div:last-child > article').length > 0) { + $('div.the-list > div:last-child > article').click(); + } } // this is our URL-based customizations made by JavaScript