Add additional delete sync support.

This commit is contained in:
Cody Henthorne
2024-06-13 10:11:29 -04:00
committed by Greyson Parrelli
parent d22d18da47
commit c80ccd70ec
37 changed files with 183 additions and 333 deletions

View File

@@ -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
)
}

View File

@@ -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() {

View File

@@ -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;