mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
Adds runnable jvmTest coverage for the commons logic behind relay groups, which until now was only compile-verified: - RelayGroupChannelTest: the roster fold in RelayGroupChannel — role derivation (admin/moderator/plain member), an admin present only in the 39001 list still resolving as a member, member-count dedup across admins+members, and the createdAt supersede guards dropping stale out-of-order 39000/39002 events. - RelayGroupListDecryptionTest: drives the exact create/add/remove calls join/leave delegate to, then reads them back through the decryption cache, proving a followed group survives the NIP-44 encrypt→sign→decrypt round-trip and that unfollow removes only the intended group. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B5MLY4hq5LXJ2D5WeLRyXj