mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
- One home for pushing to a user's room: `SocketHandler.emit_to_user`, on a write-only manager kept per event loop and on the server's own channel. Streaming's push_to_user and the sync and scan emitters use it too. - Notifications are stored in one transaction per send, so a broadcast is one commit, and pushed concurrently. Recipients are resolved from id and enabled only, and the actor is loaded with just the fields it shows. - notify_user_or_admins holds the "whoever started it, else the admins" rule both the scan and the task runner applied by hand. - A scan notifies from finish(), so no exit path can forget it. - `data` is never null, dropping its guards; the toast host, the inbox and the admin form share one tone icon map; the inbox icon uses RAvatar. - The store keeps its list when a socket echo changes nothing, and small dead parameters and duplicated lists are gone. - The socket reconnect after a logout moved from the inbox to AppLayout, since every v2 feature depends on the socket's identity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>