Send non-urgent push notifications with lower priority

This commit is contained in:
Jon Chambers
2022-08-12 11:06:31 -04:00
committed by GitHub
parent 5f6b66dad6
commit b4281c5a70
17 changed files with 280 additions and 115 deletions

View File

@@ -96,7 +96,7 @@ public class AuthenticatedConnectListener implements WebSocketConnectListener {
if (messagesManager.hasCachedMessages(auth.getAccount().getUuid(), device.getId())) {
try {
pushNotificationManager.sendNewMessageNotification(auth.getAccount(), device.getId());
pushNotificationManager.sendNewMessageNotification(auth.getAccount(), device.getId(), true);
} catch (NotPushRegisteredException ignored) {
}
}