Files
grimoire/src/components
Alejandro Gómez 8f262e1189 feat: batch-load group metadata and handle unmanaged "_" groups
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>
2026-01-11 22:10:22 +01:00
..
2025-12-20 14:25:40 +01:00
2025-12-22 13:25:38 +01:00
2025-12-20 14:25:40 +01:00
2025-12-18 16:00:56 +01:00
2025-12-18 16:00:56 +01:00
2025-12-18 16:00:56 +01:00
2025-12-20 14:25:40 +01:00
2025-12-21 21:50:09 +01:00
2025-12-20 14:25:40 +01:00