mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 11:48:24 +00:00
Extract the paginated relay download into a reusable INostrClient extension (NostrClientDownloadFromRelayExt.kt) in the Quartz commonMain accessories package. Uses Channel-based event collection for KMP compatibility (no JVM-only atomics). EventSyncViewModel.downloadFromRelay now delegates to the Quartz extension, keeping the ViewModel thin. Add NostrClientDownloadFromRelayTest integration test against wss://nos.lol with Filter(kinds = [MetadataEvent.KIND], limit = 10) to verify paginated downloads return correctly-typed events. https://claude.ai/code/session_01U8qF9mK4UBvXsXP1zNMXfX