mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 14:26:53 +00:00
Discard APNs tokens if the APNs server reports that the token is expired
This commit is contained in:
1 parent
775889c0b6
commit
02b9ceb4c7
2 files changed
+6
-5
No files matched your search
@@ -167,7 +167,7 @@ public class APNSender implements Managed, PushNotificationSender {
|
||||
} else {
|
||||
accepted = false;
|
||||
rejectionReason = response.getRejectionReason();
|
||||
unregistered = response.getRejectionReason().map(reason -> "Unregistered".equals(reason) || "BadDeviceToken".equals(reason))
|
||||
unregistered = response.getRejectionReason().map(reason -> "Unregistered".equals(reason) || "BadDeviceToken".equals(reason) || "ExpiredToken".equals(reason))
|
||||
.orElse(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user