mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 16:08:03 +01:00
Introduce a pnp capability for backward compatibility
This commit is contained in:
committed by
Jon Chambers
parent
36f85fc97e
commit
11e6ff1bbe
@@ -8,10 +8,11 @@ package org.whispersystems.textsecuregcm.entities;
|
||||
import org.whispersystems.textsecuregcm.storage.Account;
|
||||
|
||||
public record UserCapabilities(boolean paymentActivation,
|
||||
// TODO Remove the PNI capability entirely on or after 2024-05-14
|
||||
boolean pni) {
|
||||
// TODO Remove the PNI and PNP capabilities entirely on or after 2024-05-18
|
||||
boolean pni,
|
||||
boolean pnp) {
|
||||
|
||||
public static UserCapabilities createForAccount(final Account account) {
|
||||
return new UserCapabilities(account.isPaymentActivationSupported(), true);
|
||||
return new UserCapabilities(account.isPaymentActivationSupported(), true, true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user