mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-27 20:24:32 +01:00
Add additional delete sync support.
This commit is contained in:
committed by
Greyson Parrelli
parent
d22d18da47
commit
c80ccd70ec
@@ -61,6 +61,7 @@ class AccountAttributes @JsonCreator constructor(
|
||||
@JsonProperty val stories: Boolean,
|
||||
@JsonProperty val giftBadges: Boolean,
|
||||
@JsonProperty val pni: Boolean,
|
||||
@JsonProperty val paymentActivation: Boolean
|
||||
@JsonProperty val paymentActivation: Boolean,
|
||||
@JsonProperty val deleteSync: Boolean
|
||||
)
|
||||
}
|
||||
|
||||
@@ -195,12 +195,16 @@ public class SignalServiceProfile {
|
||||
@JsonProperty
|
||||
private boolean paymentActivation;
|
||||
|
||||
@JsonProperty
|
||||
private boolean deleteSync;
|
||||
|
||||
@JsonCreator
|
||||
public Capabilities() {}
|
||||
|
||||
public Capabilities(boolean storage, boolean paymentActivation) {
|
||||
public Capabilities(boolean storage, boolean paymentActivation, boolean deleteSync) {
|
||||
this.storage = storage;
|
||||
this.paymentActivation = paymentActivation;
|
||||
this.deleteSync = deleteSync;
|
||||
}
|
||||
|
||||
public boolean isStorage() {
|
||||
@@ -210,6 +214,10 @@ public class SignalServiceProfile {
|
||||
public boolean isPaymentActivation() {
|
||||
return paymentActivation;
|
||||
}
|
||||
|
||||
public boolean isDeleteSync() {
|
||||
return deleteSync;
|
||||
}
|
||||
}
|
||||
|
||||
public ExpiringProfileKeyCredentialResponse getExpiringProfileKeyCredentialResponse() {
|
||||
|
||||
@@ -657,7 +657,7 @@ message SyncMessage {
|
||||
message DeleteForMe {
|
||||
message ConversationIdentifier {
|
||||
oneof identifier {
|
||||
string threadAci = 1;
|
||||
string threadServiceId = 1;
|
||||
bytes threadGroupId = 2;
|
||||
string threadE164 = 3;
|
||||
}
|
||||
@@ -665,7 +665,7 @@ message SyncMessage {
|
||||
|
||||
message AddressableMessage {
|
||||
oneof author {
|
||||
string authorAci = 1;
|
||||
string authorServiceId = 1;
|
||||
string authorE164 = 2;
|
||||
}
|
||||
optional uint64 sentTimestamp = 3;
|
||||
|
||||
Reference in New Issue
Block a user