mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 22:38:05 +01:00
Remove last vestiges of stale capabilities.
Not for deployment until 2024-02-06!
This commit is contained in:
committed by
Jon Chambers
parent
74abe98706
commit
40d698f2db
@@ -5,40 +5,14 @@
|
||||
|
||||
package org.whispersystems.textsecuregcm.entities;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import org.whispersystems.textsecuregcm.storage.Account;
|
||||
|
||||
public record UserCapabilities(
|
||||
@Deprecated(forRemoval = true)
|
||||
@JsonProperty("gv1-migration")
|
||||
boolean gv1Migration,
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
boolean senderKey,
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
boolean announcementGroup,
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
boolean changeNumber,
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
boolean stories,
|
||||
|
||||
@Deprecated(forRemoval = true)
|
||||
boolean giftBadges,
|
||||
boolean paymentActivation,
|
||||
boolean pni) {
|
||||
|
||||
public static UserCapabilities createForAccount(Account account) {
|
||||
return new UserCapabilities(
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
true,
|
||||
|
||||
account.isPaymentActivationSupported(),
|
||||
|
||||
// Although originally intended to indicate that clients support phone number identifiers, the scope of this
|
||||
|
||||
Reference in New Issue
Block a user