mustard: notifs.js: Esclude le notifiche filtrate da quelle vive.

This commit is contained in:
paul 2020-05-19 20:00:13 +02:00 committed by Giacomo Leidi
parent e2e93c8c07
commit 7f3d5c3989

View file

@ -59,7 +59,10 @@ function markdeleted(notif) {
function getAliveNotifs(){
let notifs = Array.from(document.querySelectorAll("div.notif"));
return notifs.filter(n => !(Array.from(n.classList).includes("deleted")))
return notifs.filter(n => {
let classes = Array.from(n.classList);
return !(classes.includes("deleted") || classes.includes("filtered"));
})
}
function getAliveCheckboxes() {