Temporarily restore the `giftBadges` capability for backward compatibility
This commit is contained in:
parent
86f9322036
commit
6fd0cba06a
|
@ -10,9 +10,11 @@ import org.whispersystems.textsecuregcm.storage.Account;
|
||||||
public record UserCapabilities(boolean paymentActivation,
|
public record UserCapabilities(boolean paymentActivation,
|
||||||
// TODO Remove the PNI and PNP capabilities entirely on or after 2024-05-18
|
// TODO Remove the PNI and PNP capabilities entirely on or after 2024-05-18
|
||||||
boolean pni,
|
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) {
|
public static UserCapabilities createForAccount(final Account account) {
|
||||||
return new UserCapabilities(account.isPaymentActivationSupported(), true, true);
|
return new UserCapabilities(account.isPaymentActivationSupported(), true, true, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue