diff --git a/scripts/system/pal.js b/scripts/system/pal.js index b3499d759a..02bf92dcfe 100644 --- a/scripts/system/pal.js +++ b/scripts/system/pal.js @@ -841,15 +841,13 @@ function notificationPollCallback(connectionsArray) { return; } - if (user.online) { - newOnlineUsers++; - storedOnlineUsers[user.username] = user; + newOnlineUsers++; + storedOnlineUsers[user.username] = user; - if (!ui.isOpen && ui.notificationInitialCallbackMade) { - message = user.username + " is available in " + - user.location.root.name + "! Open PEOPLE to join them."; - ui.notificationDisplayBanner(message); - } + if (!ui.isOpen && ui.notificationInitialCallbackMade) { + message = user.username + " is available in " + + user.location.root.name + "! Open PEOPLE to join them."; + ui.notificationDisplayBanner(message); } }); var key; @@ -891,7 +889,7 @@ function startup() { onOpened: palOpened, onClosed: off, onMessage: fromQml, - notificationPollEndpoint: "/api/v1/users?filter=connections&per_page=10", + notificationPollEndpoint: "/api/v1/users?filter=connections&status=online&per_page=10", notificationPollTimeoutMs: 60000, notificationDataProcessPage: notificationDataProcessPage, notificationPollCallback: notificationPollCallback, diff --git a/scripts/system/tablet-goto.js b/scripts/system/tablet-goto.js index f37b13c406..fde558d728 100644 --- a/scripts/system/tablet-goto.js +++ b/scripts/system/tablet-goto.js @@ -125,7 +125,7 @@ function startup() { notificationDataProcessPage: notificationDataProcessPage, notificationPollCallback: notificationPollCallback, notificationPollStopPaginatingConditionMet: isReturnedDataEmpty, - notificationPollCaresAboutSince: true + notificationPollCaresAboutSince: false }); }