From 47fd8f57932ddeba0a2ba52bfaf029bde4f01817 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Wed, 14 Feb 2024 13:57:34 -0500 Subject: [PATCH] Assume that all devices are PNI-capable --- .../textsecuregcm/entities/UserCapabilities.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java b/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java index e1ef5b22a..2f46108cc 100644 --- a/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java +++ b/service/src/main/java/org/whispersystems/textsecuregcm/entities/UserCapabilities.java @@ -7,16 +7,9 @@ package org.whispersystems.textsecuregcm.entities; import org.whispersystems.textsecuregcm.storage.Account; -public record UserCapabilities( - boolean paymentActivation, - boolean pni) { +public record UserCapabilities(boolean paymentActivation, boolean pni) { - public static UserCapabilities createForAccount(Account account) { - return new UserCapabilities( - 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()); + public static UserCapabilities createForAccount(final Account account) { + return new UserCapabilities(account.isPaymentActivationSupported(), true); } }