feat: send email notifications for missed messages

- New cron job in cluster
- Handle presence and other concerns
- Toggle in app to disable email notifications
- Handles other edge cases such as cooldown period
- Simple html email with simple message

Closes #117
This commit is contained in:
talksik
2026-04-09 14:15:34 -07:00
parent 6fe5af8d8d
commit 51c4c6c822
25 changed files with 725 additions and 29 deletions
@@ -0,0 +1,3 @@
ALTER TABLE humans
DROP COLUMN email_notifications_enabled,
DROP COLUMN last_email_notification_sent_at;
@@ -0,0 +1,3 @@
ALTER TABLE humans
ADD COLUMN email_notifications_enabled BOOLEAN NOT NULL DEFAULT TRUE,
ADD COLUMN last_email_notification_sent_at TIMESTAMPTZ;