mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-25 11:20:47 +01:00
Add new My Story privacy settings.
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -165,4 +165,5 @@ message StoryDistributionListRecord {
|
||||
repeated string recipientUuids = 3;
|
||||
uint64 deletedAtTimestamp = 4;
|
||||
bool allowsReplies = 5;
|
||||
bool isBlockList = 6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user