mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-10 23:47:12 +02:00
Improvements to kind 10009 (Public Chats) renderer: Batch Loading: - PublicChatsRenderer now batch-loads all group metadata (kind 39000) in a single subscription - Much more efficient than individual subscriptions per group - Filters out "_" groups from metadata fetch (they don't have metadata) - Creates a metadata map to pass to each GroupLink Special "_" Group Handling: - "_" represents the unmanaged relay top-level group - Displays the relay name instead of group ID - Example: "pyramid.fiatjaf.com" instead of "_" GroupLink Updates: - Accepts optional metadata prop (pre-loaded from parent) - No longer fetches metadata individually (more efficient) - Extracts group name and icon from provided metadata - Falls back to group ID if metadata not available Performance: - Single subscription for all groups vs N subscriptions - Reduces relay traffic and improves rendering speed Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>