Prepare App Store 1.0 build 4

This commit is contained in:
2026-08-17 16:50:30 +02:00
parent f894d43eb6
commit 0b7c938b23
19 changed files with 191 additions and 62 deletions

View File

@@ -229,7 +229,10 @@ impl WatchSnapshotReceiver {
}
};
let mut pairing_changed = false;
if let Some(accepted) = self.accepted {
// A valid revocation can only remove secrets, so it must survive a sender reset.
if !snapshot.is_revocation()
&& let Some(accepted) = self.accepted
{
if snapshot.revision < accepted.revision {
return Ok(WatchSnapshotApply::Stale);
} else if snapshot.revision == accepted.revision {
@@ -249,10 +252,10 @@ impl WatchSnapshotReceiver {
revision: snapshot.revision,
digest: snapshot.digest,
};
let result = if pairing_changed {
WatchSnapshotApply::PairingChanged
} else if snapshot.is_revocation() {
let result = if snapshot.is_revocation() {
WatchSnapshotApply::Revoked
} else if pairing_changed {
WatchSnapshotApply::PairingChanged
} else {
WatchSnapshotApply::Replaced
};