From 11e6ff1bbe1ec72b40d0c444d56e12ec9937df18 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Sun, 18 Feb 2024 17:09:45 -0500 Subject: [PATCH] Introduce a `pnp` capability for backward compatibility --- .../textsecuregcm/entities/UserCapabilities.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java b/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java index f947fc614..682d1524b 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java @@ -8,10 +8,11 @@ package org.whispersystems.textsecuregcm.entities; import org.whispersystems.textsecuregcm.storage.Account; public record UserCapabilities(boolean paymentActivation, - // TODO Remove the PNI capability entirely on or after 2024-05-14 - boolean pni) { + // TODO Remove the PNI and PNP capabilities entirely on or after 2024-05-18 + boolean pni, + boolean pnp) { public static UserCapabilities createForAccount(final Account account) { - return new UserCapabilities(account.isPaymentActivationSupported(), true); + return new UserCapabilities(account.isPaymentActivationSupported(), true, true); } }