Files
ihasmail/server/src
jcoffey-dev aedcf74d3f
ci / node (pull_request) Skipped
ci / version (pull_request) Skipped
ci / docker-build (pull_request) Skipped
ci / publish (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 3m24s
Notifications with the app closed, for every signed-in account
Turning on "Notify me even when ihasmail is closed" now registers this
browser in every signed-in account, each through its own session (the
route from the previous change), and renewal keeps them all current.
GET /api/auth/accounts says which mail account each session is, so the
subscription can name it. The remembered endpoint is kept per account,
and survives the clean-up that follows switching accounts.

The service worker is told who the other accounts are. A push for one
of them is titled with that account's address, shown even while a tab
is focused (the tab only shows the front account's mail), and its Mark
read and Archive act through that account's session. Clicking it brings
that account to the front and opens the message. While push is on, the
tab's own polling of other accounts stops notifying, so nothing arrives
twice.

Signing out of one account removes this device's subscription there
only; signing out of all, or turning push off, removes every one.

Also fixes where every background notification opened: the worker
linked to /mail/inbox/<thread>, and the route takes a mailbox id there,
so a click landed on the inbox list with "That folder no longer exists".
The worker now gets each account's inbox id and links to the message.

No new strings.
2026-10-20 13:48:28 -07:00
..
2026-09-01 22:41:18 -07:00
2026-09-22 09:02:57 -07:00
2026-08-26 09:51:03 -07:00