Add delete sync capability

This commit is contained in:
Katherine
2024-06-12 13:54:06 -04:00
committed by GitHub
parent 155450380e
commit 0414da8c32
23 changed files with 144 additions and 40 deletions

View File

@@ -5,11 +5,14 @@
package org.whispersystems.textsecuregcm.entities;
import org.whispersystems.textsecuregcm.storage.Account;
public record UserCapabilities(
// TODO: Remove the paymentActivation capability entirely sometime soon after 2024-06-30
boolean paymentActivation) {
boolean paymentActivation,
boolean deleteSync) {
public UserCapabilities() {
this(true);
public static UserCapabilities createForAccount(final Account account) {
return new UserCapabilities(true, account.isDeleteSyncSupported());
}
}