Remove stale pni, pnp, and giftBadges capabilities

This commit is contained in:
Katherine
2024-06-12 13:42:18 -04:00
committed by GitHub
parent 5b78c0d3e0
commit f435b612c9
4 changed files with 2 additions and 15 deletions

View File

@@ -7,14 +7,9 @@ package org.whispersystems.textsecuregcm.entities;
public record UserCapabilities(
// TODO: Remove the paymentActivation capability entirely sometime soon after 2024-06-30
boolean paymentActivation,
// TODO Remove the PNI and PNP capabilities entirely on or after 2024-05-18
boolean pni,
boolean pnp,
// TODO Remove the giftBadges capability on or after 2024-05-26
boolean giftBadges) {
boolean paymentActivation) {
public UserCapabilities() {
this(true, true, true, true);
this(true);
}
}

View File

@@ -83,7 +83,6 @@ public class ProfileGrpcHelper {
static UserCapabilities buildUserCapabilities(final org.whispersystems.textsecuregcm.entities.UserCapabilities capabilities) {
return UserCapabilities.newBuilder()
.setPaymentActivation(capabilities.paymentActivation())
.setPni(capabilities.pni())
.build();
}