mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-01 14:13:22 +01:00
Sync PNI verification status to storage service.
This commit is contained in:
committed by
Nicholas Tinsley
parent
459607adae
commit
716afc98ac
@@ -157,6 +157,10 @@ public final class SignalContactRecord implements SignalRecord {
|
||||
diff.add("Hidden");
|
||||
}
|
||||
|
||||
if (isPniSignatureVerified() != that.isPniSignatureVerified()) {
|
||||
diff.add("PniSignatureVerified");
|
||||
}
|
||||
|
||||
if (!Objects.equals(this.hasUnknownFields(), that.hasUnknownFields())) {
|
||||
diff.add("UnknownFields");
|
||||
}
|
||||
@@ -265,6 +269,10 @@ public final class SignalContactRecord implements SignalRecord {
|
||||
return proto.hidden;
|
||||
}
|
||||
|
||||
public boolean isPniSignatureVerified() {
|
||||
return proto.pniSignatureVerified;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the same record, but stripped of the PNI field. Only used while PNP is in development.
|
||||
*/
|
||||
@@ -401,6 +409,11 @@ public final class SignalContactRecord implements SignalRecord {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setPniSignatureVerified(boolean verified) {
|
||||
builder.pniSignatureVerified(verified);
|
||||
return this;
|
||||
}
|
||||
|
||||
private static ContactRecord.Builder parseUnknowns(byte[] serializedUnknowns) {
|
||||
try {
|
||||
return ContactRecord.ADAPTER.decode(serializedUnknowns).newBuilder();
|
||||
|
||||
Reference in New Issue
Block a user