Assume that all devices are PNI-capable
This commit is contained in:
parent
40d698f2db
commit
47fd8f5793
|
@ -7,16 +7,9 @@ package org.whispersystems.textsecuregcm.entities;
|
||||||
|
|
||||||
import org.whispersystems.textsecuregcm.storage.Account;
|
import org.whispersystems.textsecuregcm.storage.Account;
|
||||||
|
|
||||||
public record UserCapabilities(
|
public record UserCapabilities(boolean paymentActivation, boolean pni) {
|
||||||
boolean paymentActivation,
|
|
||||||
boolean pni) {
|
|
||||||
|
|
||||||
public static UserCapabilities createForAccount(Account account) {
|
public static UserCapabilities createForAccount(final Account account) {
|
||||||
return new UserCapabilities(
|
return new UserCapabilities(account.isPaymentActivationSupported(), true);
|
||||||
account.isPaymentActivationSupported(),
|
|
||||||
|
|
||||||
// Although originally intended to indicate that clients support phone number identifiers, the scope of this
|
|
||||||
// flag has expanded to cover phone number privacy in general
|
|
||||||
account.isPniSupported());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue