mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-12 09:13:23 +00:00
Per NIP-17, seal (kind 13) and gift wrap (kind 1059) created_at are randomized up to 2 days in the past for privacy. A subscription that applies a `since` window — even with a 2-day adjustment — silently drops wraps whose randomized timestamp predates the window, losing real DMs and suppressing the unread badge. Today only one caller (the desktop subscription coordinator) reaches FilterDMs.giftWrapsToMe and it already passes no `since`, but the parameter remained on the function signature as a footgun. Drop it so the invariant is enforceable by the type, and document why in KDoc.