mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 16:14:35 +02:00
Prevent text notification from appearing when not necessary
This commit is contained in:
parent
c453594eb7
commit
d487914656
1 changed files with 11 additions and 9 deletions
|
@ -874,6 +874,7 @@ function notificationPollCallback(connectionsArray) {
|
|||
shouldShowDot: shouldShowDot
|
||||
});
|
||||
|
||||
if (newlyOnlineConnectionsArray.length > 0) {
|
||||
var message;
|
||||
if (!ui.notificationInitialCallbackMade) {
|
||||
message = newlyOnlineConnectionsArray.length + " of your connections " +
|
||||
|
@ -888,6 +889,7 @@ function notificationPollCallback(connectionsArray) {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function isReturnedDataEmpty(data) {
|
||||
var usersArray = data.data.users;
|
||||
|
|
Loading…
Reference in a new issue