feat: push notifications for DMs

- DM handler now sends push notifications to other conversation members
- Cleared stale push subscriptions (old broken VAPID keys)
- Auto-subscribe will re-create them on next page load
This commit is contained in:
2026-07-02 14:56:58 -04:00
parent a593f04d7f
commit a502cd8fd4
2 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ func main() {
})
// Direct messages
dmHandler := dm.NewHandler(database.DB, hub, logger)
dmHandler := dm.NewHandler(database.DB, hub, pushHandler, logger)
r.Route("/conversations", func(r chi.Router) {
dmHandler.RegisterRoutes(r)
})