From 21299c6fc147106072aef033e756f08e6fa957c5 Mon Sep 17 00:00:00 2001 From: Mario Date: Tue, 19 Nov 2019 09:39:09 +0000 Subject: sse: defins sse_mids as array and comment out logging of dismissed notifications --- view/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/view/js/main.js b/view/js/main.js index fec86f4ba..1fbd57b2a 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -30,7 +30,7 @@ var sse_bs_active = false; var sse_offset = 0; var sse_type; var sse_partial_result = false; -var sse_mids; +var sse_mids = []; // take care of tab/window reloads on channel change if(localStorage.getItem('uid') !== localUser.toString()) { @@ -2078,7 +2078,7 @@ function sse_handleNotificationsItems(notifyType, data, replace, followup) { $(data).each(function() { if(sse_mids.indexOf(this.b64mid) >= 0) { - console.log('dismiss: ' + this.b64mid); + //console.log('dismiss: ' + this.b64mid); return true; } html = notifications_tpl.format(this.notify_link,this.photo,this.name,this.addr,this.message,this.when,this.hclass,this.b64mid,this.notify_id,this.thread_top,this.unseen,this.private_forum); -- cgit v1.2.3