diff --git a/Roadmap.md b/Roadmap.md index eb09131..3116250 100644 --- a/Roadmap.md +++ b/Roadmap.md @@ -81,4 +81,7 @@ - [x] WebAuthn passkey backend (full begin/finish flow) - [x] WebAuthn passkey frontend (register/login buttons) - [x] REST API documentation (Swagger UI at /docs) -- [x] Swaggo handler annotations (in progress) +- [x] Inline markdown formatting toolbar (B/I/S/code/spoiler) +- [x] GIF picker and kaomoji in DMs +- [x] Restore last active channel on login +- [x] DM push notifications diff --git a/Self-Hosting.md b/Self-Hosting.md index 04b0d6d..cb587ae 100644 --- a/Self-Hosting.md +++ b/Self-Hosting.md @@ -50,7 +50,7 @@ GIPHY_API_KEY= # Push notifications (optional) VAPID_PUBLIC_KEY= VAPID_PRIVATE_KEY= -VAPID_SUBJECT=mailto:admin@your.domain +VAPID_SUBJECT=admin@your.domain ``` ## Ports required @@ -125,19 +125,19 @@ To enable push notifications: 1. Generate VAPID keys: ```bash - # Use any VAPID key generator, e.g.: - go run -exec "go run ./cmd/gen-vapid" . - # Or use an online generator + go run ./cmd/keygen ``` 2. Add to `.env`: ```env VAPID_PUBLIC_KEY= VAPID_PRIVATE_KEY= - VAPID_SUBJECT=mailto:admin@your.domain + VAPID_SUBJECT=admin@your.domain ``` -3. Users can subscribe via the web UI (browser notifications) + Set `VAPID_SUBJECT` to your email address **without** the `mailto:` prefix (the library adds it automatically). + +3. Users are auto-subscribed on login. On iOS, the prompt requires a tap gesture (a banner appears). On Android, notifications deliver through FCM when Chrome is running. Ensure Chrome battery optimization is set to Unrestricted for reliable delivery when the PWA is closed. ## Roles & permissions