mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 06:46:53 +00:00
Remove low priority attempt login notification workaround for old iOS clients
This commit is contained in:
1 parent
a83378a44e
commit
d4ef2adf0a
5 files changed
+1
-17
No files matched your search
-3
@@ -115,8 +115,6 @@ class PushNotificationManagerTest {
|
||||
when(device.getApnId()).thenReturn(deviceToken);
|
||||
when(apnSender.sendNotification(any()))
|
||||
.thenReturn(CompletableFuture.completedFuture(new SendPushNotificationResult(true, null, false)));
|
||||
when(apnPushNotificationScheduler.scheduleBackgroundNotification(account, device))
|
||||
.thenReturn(CompletableFuture.completedFuture(null));
|
||||
} else {
|
||||
when(device.getGcmId()).thenReturn(deviceToken);
|
||||
when(fcmSender.sendNotification(any()))
|
||||
@@ -129,7 +127,6 @@ class PushNotificationManagerTest {
|
||||
if (isApn){
|
||||
verify(apnSender).sendNotification(new PushNotification(deviceToken, PushNotification.TokenType.APN,
|
||||
PushNotification.NotificationType.ATTEMPT_LOGIN_NOTIFICATION_HIGH_PRIORITY, "someContext", account, device, true));
|
||||
verify(apnPushNotificationScheduler).scheduleBackgroundNotification(account, device);
|
||||
} else {
|
||||
verify(fcmSender, times(1)).sendNotification(new PushNotification(deviceToken, PushNotification.TokenType.FCM,
|
||||
PushNotification.NotificationType.ATTEMPT_LOGIN_NOTIFICATION_HIGH_PRIORITY, "someContext", account, device, true));
|
||||
|
||||
Reference in new issue
Block a user