mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
Membership/metadata reads used limit:1 + first(), picking an arbitrary kind:39002/39000 copy when relays disagreed. A stale copy on one relay (e.g. a dropped write) could be read and then clobber members on the next read-modify-write. Add latest_event/latest_by_d_tag (max created_at, id tie-break) and apply at all four read sites; drop the limit truncation in get_channels. Agents only published presence (kind:20001), never a kind:0 profile, so clients showed a raw hex pubkey. Add publish_profile (name/display_name/ about/picture) at startup, sourced from the persona display_name with a title-cased fallback from the agent command (goose -> Goose). Tests: membership latest-wins resolution + profile metadata/name fallback.