mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-08 23:54:39 +00:00
Adds entityId and accountPubKey to ExplainedFilter so a chip can answer "which community made me connect here, and for whose account" rather than a bare "Communities". Both ride copy() and are covered by the existing never-reaches-the-wire test. Ids, not names: names change, are often not loaded when the filter is built, and would pin a stale copy into a subscription that outlives them. The UI resolves against LocalCache at render time. A pubkey, not an Account reference: filters are held by the relay pool for the session and outlive the objects that built them, so a reference would keep a logged-out account alive. Several accounts are normally active and do not share relay sets, so without this one account's communities read as another's. purposeEntities() returns the (purpose, entity, account) rows a relay is serving, which is what a per-relay or per-subscription screen needs. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>