Skip to content

Commit

Permalink
fix: update snapshots, fix pgp edge case for optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 2, 2025
1 parent 0b8ca22 commit 6bece4e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion helpers/send-email.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ async function getPGPResults({
return { finalRaw, pgp };
}

// eslint-disable-next-line complexity
async function sendEmail(
{
session,
Expand Down Expand Up @@ -236,7 +237,7 @@ async function sendEmail(
// - pm.me
// - + supports custom domains since we use truthSource (resolved MX server)
//
if (truthSource === 'protonmail.ch') {
if (pgpResults.pgp && truthSource === 'protonmail.ch') {
pgpResults.finalRaw = await signMessage(raw, domain);
pgpResults.pgp = false;
// TODO: email users one-time per month regarding this issue
Expand Down
8 changes: 4 additions & 4 deletions test/web/snapshots/index.js.md

Large diffs are not rendered by default.

Binary file modified test/web/snapshots/index.js.snap
Binary file not shown.
4 changes: 2 additions & 2 deletions test/web/snapshots/otp.js.md

Large diffs are not rendered by default.

Binary file modified test/web/snapshots/otp.js.snap
Binary file not shown.

0 comments on commit 6bece4e

Please sign in to comment.