Let the receiver fix a wrong salt during a search

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
SchluffeandClaude Opus 5.5 committed 2026-10-28 17:51:20 +01:00
1 parent 2e47b55901
commit aa61efcc10
3 files changed
+19 -18

No files matched your search

+6 -3
View File
@@ -277,9 +277,12 @@ function onReceive() {
attempt(signal, receiveViaTracker(receiveCode.value, receiveEvents, signal, salt()));
}
// The salt stays as it is while a tracker share or search runs: it found or waits in the swarm of the
// salt it started with, another one shown would be the wrong one to give the receiver.
const saltLocked = computed(() => viaTracker.value && !['error', 'done', 'stopped'].includes(phase.value!));
// The salt stays as it is while a tracker share runs: it waits in the swarm of the salt it started
// with, another one shown would be the wrong one to give the receiver. A search only takes the salt
// on Receive, so a wrong one can be fixed and searched with again.
const saltLocked = computed(
() => viaTracker.value && side.value === 'send' && !['error', 'done', 'stopped'].includes(phase.value!),
);
</script>
<template>