Remove stale pni, pnp, and giftBadges capabilities

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

No files matched your search

@@ -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);
}
}
@@ -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();
}