Revert "Temporarily make registration challenge notifications "noisy""

This reverts commit 9069c5abb6.
This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2023-12-06 12:40:16 -05:00
1 parent 6cdf8ebd2c
commit db17693ba7
1 file changed
+2 -3
@@ -103,7 +103,7 @@ public class APNSender implements Managed, PushNotificationSender {
.build();
case CHALLENGE -> new SimpleApnsPayloadBuilder()
.setLocalizedAlertMessage("APN_Message")
.setContentAvailable(true)
.addCustomProperty("challenge", notification.data())
.build();
@@ -125,8 +125,7 @@ public class APNSender implements Managed, PushNotificationSender {
case NOTIFICATION ->
(notification.urgent() || isVoip) ? DeliveryPriority.IMMEDIATE : DeliveryPriority.CONSERVE_POWER;
case ATTEMPT_LOGIN_NOTIFICATION_HIGH_PRIORITY -> DeliveryPriority.IMMEDIATE;
case CHALLENGE -> DeliveryPriority.IMMEDIATE;
case RATE_LIMIT_CHALLENGE -> DeliveryPriority.CONSERVE_POWER;
case CHALLENGE, RATE_LIMIT_CHALLENGE -> DeliveryPriority.CONSERVE_POWER;
};
final String collapseId =