mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 21:58:02 +01:00
Hardcode paymentActivation flag to true
This commit is contained in:
@@ -5,16 +5,16 @@
|
||||
|
||||
package org.whispersystems.textsecuregcm.entities;
|
||||
|
||||
import org.whispersystems.textsecuregcm.storage.Account;
|
||||
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) {
|
||||
|
||||
public record UserCapabilities(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) {
|
||||
|
||||
public static UserCapabilities createForAccount(final Account account) {
|
||||
return new UserCapabilities(account.isPaymentActivationSupported(), true, true, true);
|
||||
public UserCapabilities() {
|
||||
this(true, true, true, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user