mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
GOTO doesn't care about SINCE; reduce data for PEOPLE
This commit is contained in:
parent
ed84b49ece
commit
87e91a4401
2 changed files with 8 additions and 10 deletions
|
@ -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,
|
||||
|
|
|
@ -125,7 +125,7 @@ function startup() {
|
|||
notificationDataProcessPage: notificationDataProcessPage,
|
||||
notificationPollCallback: notificationPollCallback,
|
||||
notificationPollStopPaginatingConditionMet: isReturnedDataEmpty,
|
||||
notificationPollCaresAboutSince: true
|
||||
notificationPollCaresAboutSince: false
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue