From 6fd0cba06a00f75ba40347615ad45d2a68c5f8ec Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Mon, 26 Feb 2024 09:44:50 -0500 Subject: [PATCH] Temporarily restore the `giftBadges` capability for backward compatibility --- .../textsecuregcm/entities/UserCapabilities.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 682d1524b..c3c7b7052 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java @@ -10,9 +10,11 @@ import org.whispersystems.textsecuregcm.storage.Account; public record UserCapabilities(boolean paymentActivation, // TODO Remove the PNI and PNP capabilities entirely on or after 2024-05-18 boolean pni, - boolean pnp) { + boolean pnp, + // TODO Remove the giftBadges capability on or after 2024-05-26 + boolean giftBadges) { public static UserCapabilities createForAccount(final Account account) { - return new UserCapabilities(account.isPaymentActivationSupported(), true, true); + return new UserCapabilities(account.isPaymentActivationSupported(), true, true, true); } }