Add a `pni` capability to `UserCapabilities`
This commit is contained in:
parent
a60450d931
commit
60edf4835f
|
@ -15,7 +15,8 @@ public record UserCapabilities(
|
||||||
boolean changeNumber,
|
boolean changeNumber,
|
||||||
boolean stories,
|
boolean stories,
|
||||||
boolean giftBadges,
|
boolean giftBadges,
|
||||||
boolean paymentActivation) {
|
boolean paymentActivation,
|
||||||
|
boolean pni) {
|
||||||
|
|
||||||
public static UserCapabilities createForAccount(Account account) {
|
public static UserCapabilities createForAccount(Account account) {
|
||||||
return new UserCapabilities(
|
return new UserCapabilities(
|
||||||
|
@ -25,6 +26,12 @@ public record UserCapabilities(
|
||||||
account.isChangeNumberSupported(),
|
account.isChangeNumberSupported(),
|
||||||
account.isStoriesSupported(),
|
account.isStoriesSupported(),
|
||||||
account.isGiftBadgesSupported(),
|
account.isGiftBadgesSupported(),
|
||||||
false); // Hardcode to false until all clients support the flow
|
|
||||||
|
// Hardcode payment activation flag to false until all clients support the flow
|
||||||
|
false,
|
||||||
|
|
||||||
|
// 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