Prefer access key with SEALED_SENDER.UNKNOWN

Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com>
This commit is contained in:
automated-signal
2024-06-10 18:38:42 -05:00
committed by GitHub
parent bb740e5a63
commit ddcee11ed4

View File

@@ -1278,10 +1278,11 @@ function getAccessKey(
return accessKey || undefined;
}
if (
sealedSender === SEALED_SENDER.UNKNOWN ||
sealedSender === SEALED_SENDER.UNRESTRICTED
) {
if (sealedSender === SEALED_SENDER.UNKNOWN) {
return accessKey || ZERO_ACCESS_KEY;
}
if (sealedSender === SEALED_SENDER.UNRESTRICTED) {
return ZERO_ACCESS_KEY;
}