mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 17:38:04 +01:00
Add delete sync capability
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user