]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Desktop-notifs - show notifs which have seen = false or seen = 0
authorrabuzarus <>
Sun, 9 Apr 2017 12:24:26 +0000 (14:24 +0200)
committerrabuzarus <>
Sun, 9 Apr 2017 12:24:26 +0000 (14:24 +0200)
js/main.js

index f6e1cc11507286be8b0efb7334a0584eece83b1a..556e4ed8cf082a32dd8f0578197b3647d76b76c4 100644 (file)
                                // 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('&rarr; ', '').format(e.name)),