Display existing dismissed notifs in archived

This commit is contained in:
ClemDee
2019-07-02 12:02:02 +02:00
parent c586d9170a
commit 95959b60c6
2 changed files with 12 additions and 9 deletions

View File

@@ -80,7 +80,7 @@ define([
onViewedHandlers.push(function (data) {
var hash = data.hash.replace(/"/g, '\\\"');
var $notif = $('.cp-notification[data-hash="'+hash+'"]');
var $notif = $('.cp-notification[data-hash="'+hash+'"]:not(.cp-app-notification-archived)');
if ($notif.length) {
$notif.remove();
}