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:
1 parent
2e47b55901
commit
aa61efcc10
3 files changed
+19
-18
No files matched your search
+6
-3
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user