Add new My Story privacy settings.

This commit is contained in:
Cody Henthorne
2022-06-24 10:51:26 -04:00
parent ebc556801e
commit 9bc25132c3
58 changed files with 935 additions and 242 deletions

View File

@@ -74,6 +74,10 @@ public class SignalStoryDistributionListRecord implements SignalRecord {
return proto.getAllowsReplies();
}
public boolean isBlockList() {
return proto.getIsBlockList();
}
@Override
public String describeDiff(SignalRecord other) {
if (other instanceof SignalStoryDistributionListRecord) {
@@ -104,6 +108,10 @@ public class SignalStoryDistributionListRecord implements SignalRecord {
diff.add("AllowsReplies");
}
if (this.isBlockList() != that.isBlockList()) {
diff.add("BlockList");
}
return diff.toString();
} else {
return "Different class. " + getClass().getSimpleName() + " | " + other.getClass().getSimpleName();
@@ -166,6 +174,11 @@ public class SignalStoryDistributionListRecord implements SignalRecord {
return this;
}
public Builder setIsBlockList(boolean isBlockList) {
builder.setIsBlockList(isBlockList);
return this;
}
public SignalStoryDistributionListRecord build() {
return new SignalStoryDistributionListRecord(id, builder.build());
}

View File

@@ -165,4 +165,5 @@ message StoryDistributionListRecord {
repeated string recipientUuids = 3;
uint64 deletedAtTimestamp = 4;
bool allowsReplies = 5;
bool isBlockList = 6;
}