From 9aaac0eefd38042ceda6fb9ec19ba8f4bec945f8 Mon Sep 17 00:00:00 2001 From: Jonathan Klabunde Tomer <125505367+jkt-signal@users.noreply.github.com> Date: Wed, 12 Jul 2023 10:14:16 -0700 Subject: [PATCH] don't require all devices to support PNI for PNIHW --- .../textsecuregcm/controllers/AccountControllerV2.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java index a33b968c9..bc273fd67 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/controllers/AccountControllerV2.java @@ -166,7 +166,6 @@ public class AccountControllerV2 { @ApiResponse(responseCode = "401", description = "Account authentication check failed.") @ApiResponse(responseCode = "403", description = "This endpoint can only be invoked from the account's primary device.") @ApiResponse(responseCode = "422", description = "The request body failed validation.") - @ApiResponse(responseCode = "425", description = "Not all of this account's devices support phone-number identities yet.") @ApiResponse(responseCode = "409", description = "The set of devices specified in the request does not match the set of devices active on the account.", content = @Content(schema = @Schema(implementation = MismatchedDevices.class))) @ApiResponse(responseCode = "410", description = "The registration IDs provided for some devices do not match those stored on the server.", @@ -178,11 +177,6 @@ public class AccountControllerV2 { throw new ForbiddenException(); } - final Account account = authenticatedAccount.getAccount(); - if (!account.isPniSupported()) { - throw new WebApplicationException(Response.status(425).build()); - } - try { final Account updatedAccount = changeNumberManager.updatePniKeys( authenticatedAccount.getAccount(),