fix(app): clear unread badge and divider on window activation
Daniel Däschle authored 8 weeks ago
Before: nothing observed window activation, so the badge waited for the next message event or sync.
After: activation, incoming messages and sidebar changes mark the open chat read locally at once, then send the marker in the background.
- store upsert keeps max(local, server) last_read_at, so a stale sync cannot bring the count back
- the Neu divider is dropped with the badge, except on the initial open
- reads are skipped while the window is inactive
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>