diff --git a/src/app/components/EmailNotificationsInfo.svelte b/src/app/components/EmailNotificationsInfo.svelte new file mode 100644 index 00000000..27b2f04e --- /dev/null +++ b/src/app/components/EmailNotificationsInfo.svelte @@ -0,0 +1,26 @@ + + + + + Email notifications + +

+ For a community's new messages to appear in your email digest, its relay must support NIP-9a + (email notifications). +

+

+ If a community is missing from your digest, ask the community admin to enable NIP-9a on their + relay. +

+ +
diff --git a/src/routes/settings/alerts/+page.svelte b/src/routes/settings/alerts/+page.svelte index 34f23921..58776c57 100644 --- a/src/routes/settings/alerts/+page.svelte +++ b/src/routes/settings/alerts/+page.svelte @@ -1,6 +1,8 @@ @@ -198,6 +232,23 @@ {/snippet} {#if settings.email} + {#if $communitiesWithoutEmail.length > 0} +
+

+ {#if $communitiesWithoutEmail.length === 1} + 1 of your communities does not support email notifications. + {:else} + {$communitiesWithoutEmail.length} of your communities do not support email notifications. + {/if} + +

+ +
+ {/if} {#snippet label()}

Email address