mirror of
https://github.com/overte-org/overte.git
synced 2025-06-25 09:49:49 +02: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (user.online) {
|
newOnlineUsers++;
|
||||||
newOnlineUsers++;
|
storedOnlineUsers[user.username] = user;
|
||||||
storedOnlineUsers[user.username] = user;
|
|
||||||
|
|
||||||
if (!ui.isOpen && ui.notificationInitialCallbackMade) {
|
if (!ui.isOpen && ui.notificationInitialCallbackMade) {
|
||||||
message = user.username + " is available in " +
|
message = user.username + " is available in " +
|
||||||
user.location.root.name + "! Open PEOPLE to join them.";
|
user.location.root.name + "! Open PEOPLE to join them.";
|
||||||
ui.notificationDisplayBanner(message);
|
ui.notificationDisplayBanner(message);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var key;
|
var key;
|
||||||
|
@ -891,7 +889,7 @@ function startup() {
|
||||||
onOpened: palOpened,
|
onOpened: palOpened,
|
||||||
onClosed: off,
|
onClosed: off,
|
||||||
onMessage: fromQml,
|
onMessage: fromQml,
|
||||||
notificationPollEndpoint: "/api/v1/users?filter=connections&per_page=10",
|
notificationPollEndpoint: "/api/v1/users?filter=connections&status=online&per_page=10",
|
||||||
notificationPollTimeoutMs: 60000,
|
notificationPollTimeoutMs: 60000,
|
||||||
notificationDataProcessPage: notificationDataProcessPage,
|
notificationDataProcessPage: notificationDataProcessPage,
|
||||||
notificationPollCallback: notificationPollCallback,
|
notificationPollCallback: notificationPollCallback,
|
||||||
|
|
|
@ -125,7 +125,7 @@ function startup() {
|
||||||
notificationDataProcessPage: notificationDataProcessPage,
|
notificationDataProcessPage: notificationDataProcessPage,
|
||||||
notificationPollCallback: notificationPollCallback,
|
notificationPollCallback: notificationPollCallback,
|
||||||
notificationPollStopPaginatingConditionMet: isReturnedDataEmpty,
|
notificationPollStopPaginatingConditionMet: isReturnedDataEmpty,
|
||||||
notificationPollCaresAboutSince: true
|
notificationPollCaresAboutSince: false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue