mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-08 04:32:42 +00:00
The intake routes call notifyDelegatedIntake with both account ids and the helper decides. Keeping the comparison here rather than at the call sites means a route added later cannot notify somebody about a dose they marked themselves, and a snooze is answered in one place as what it is: moving a dose, not resolving one. The medication name is read scoped to the owner, because that name goes onto the owner's lock screen. Nothing addresses the delegate: the dispatcher takes a single account id, and under record substitution that id is the owner. The person who marked the dose learns what they did from the response they are already awaiting. The integration test asserts the ledger row before the sender mock, so a dispatch nobody recorded cannot pass as a dispatch.