From 2b08519f5ad2cf7803736b42159f92f754acb0bd Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 28 Nov 2019 08:22:53 +0000 Subject: sse: improve caching fix an issue with removing notifications and move chatpresence expiration to cron --- view/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index eac9bf6ef..a528658e1 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1774,7 +1774,9 @@ function sse_updateNotifications(type, mid, interactive) { if(! interactive) return true; - $('#nav-' + type + '-menu .notification[data-b64mid=\'' + mid + '\']').fadeOut(); + $('#nav-' + type + '-menu .notification[data-b64mid=\'' + mid + '\']').fadeOut(function() { + this.remove(); + }); } -- cgit v1.2.3