Files
notedeck/crates
Claude 9e2331fa3d Add migration logic to fix corrupted relay URLs from old format
When decks_cache.json was saved with the old format, relay URLs like
"wss://wot.nostr.net" were split by the ":" delimiter into separate
tokens: ["wss", "//wot.nostr.net"]. This commit adds migration logic
to detect and reconstruct these corrupted URLs during parsing.

Detection heuristic:
- If the relay_url token is just "wss" or "ws" (without "://")
- AND the next token (hashtags_str) starts with "//"
- Then reconstruct the full URL as "wss://..." or "ws://..."
- And pull the next token as the actual hashtags

This allows existing users with corrupted decks_cache.json files to
automatically have their relay URLs fixed on next app restart, without
needing to manually delete the cache file.
2025-11-12 14:50:55 +00:00
..
2025-11-06 21:34:26 -08:00
2025-11-06 21:36:06 -08:00
2025-11-04 14:53:10 -08:00
2025-04-21 13:16:18 -07:00