Skip to content

Commit

Permalink
Make footer random
Browse files Browse the repository at this point in the history
This should prevent clients like gmail from collapsing the emails, in cases where they seem similar
  • Loading branch information
razzeee committed Sep 30, 2024
1 parent 28a23ea commit 62061f7
Showing 1 changed file with 30 additions and 28 deletions.
58 changes: 30 additions & 28 deletions backend-node/emails/base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,36 +85,38 @@ export const Base = ({
{children}
<Hr />

<Text className="text-black text-[14px] leading-[24px]">
{footerMode === "developer_invite" && (
<Text>
You are receiving this email because someone has invited you
to become a developer of the app{" "}
<Link href={`https://flathub.org/apps/${appId}`}>
{appNameAndId}
</Link>{" "}
on Flathub.
</Text>
)}
<Container className={`${Math.random()}`}>
<Text className="text-black text-[14px] leading-[24px]">
{footerMode === "developer_invite" && (
<Text>
You are receiving this email because someone has invited you
to become a developer of the app{" "}
<Link href={`https://flathub.org/apps/${appId}`}>
{appNameAndId}
</Link>{" "}
on Flathub.
</Text>
)}

{footerMode === "developer_app" && (
<Text>
You are receiving this email because you are a maintainer of
the app{" "}
<Link href={`https://flathub.org/apps/${appId}`}>
{appNameAndId}
</Link>{" "}
on Flathub.
</Text>
)}
{footerMode === "developer_app" && (
<Text>
You are receiving this email because you are a maintainer of
the app{" "}
<Link href={`https://flathub.org/apps/${appId}`}>
{appNameAndId}
</Link>{" "}
on Flathub.
</Text>
)}

{footerMode === "default" && (
<Text>
You are receiving this email because you have an account on
Flathub.
</Text>
)}
</Text>
{footerMode === "default" && (
<Text>
You are receiving this email because you have an account on
Flathub.
</Text>
)}
</Text>
</Container>
</Container>
</Body>
</Tailwind>
Expand Down

0 comments on commit 62061f7

Please sign in to comment.