From: rabuzarus <> Date: Sun, 9 Apr 2017 12:24:26 +0000 (+0200) Subject: Bugfix: Desktop-notifs - show notifs which have seen = false or seen = 0 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=836e0b279994d8554a9a2eaa00a0285b222b1878;p=friendica.git Bugfix: Desktop-notifs - show notifs which have seen = false or seen = 0 --- diff --git a/js/main.js b/js/main.js index f6e1cc1150..556e4ed8cf 100644 --- a/js/main.js +++ b/js/main.js @@ -249,7 +249,7 @@ // Desktop Notifications $(data.notifications.reverse()).each(function(key, e){ notification_id = parseInt(e.timestamp); - if (notification_lastitem !== null && notification_id > notification_lastitem && !e.seen) { + if (notification_lastitem !== null && notification_id > notification_lastitem && Number(e.seen) === 0) { if (getNotificationPermission() === "granted") { var notification = new Notification(document.title, { body: decodeHtml(e.message.replace('→ ', '').format(e.name)),