FIX: skip checking noncePriv eq if the URI doesn't specify a noncePriv value

This commit is contained in:
Sebastian 2021-10-01 13:34:28 -03:00
parent 398bd0664b
commit bff5b3f59c
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -893,7 +893,7 @@ async function startDownloadProposal(
*/
if (oldProposal &&
oldProposal.downloadSessionId === sessionId &&
oldProposal.noncePriv === noncePriv &&
(!noncePriv || oldProposal.noncePriv === noncePriv) &&
oldProposal.claimToken === claimToken) {
await processDownloadProposal(ws, oldProposal.proposalId);
return oldProposal.proposalId;