From 54a0b4dd4546e6a1e6ff0bcd1bd6280994ad0b40 Mon Sep 17 00:00:00 2001 From: heyaim <223061694+heyaim@users.noreply.github.com> Date: Mon, 7 Sep 2026 19:01:10 -0500 Subject: [PATCH] Record the source of the bundled and cached relay files Review follow-up on the naming: the bundled asset and the download cache kept their old file names when the fetch moved to online_relays_gps.csv. A comment now records where both come from; the names then do not send anyone looking for a georelays fetch that is gone. --- app/src/main/java/com/bitchat/android/nostr/RelayDirectory.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/bitchat/android/nostr/RelayDirectory.kt b/app/src/main/java/com/bitchat/android/nostr/RelayDirectory.kt index cf85bb03..fd7d5d2a 100644 --- a/app/src/main/java/com/bitchat/android/nostr/RelayDirectory.kt +++ b/app/src/main/java/com/bitchat/android/nostr/RelayDirectory.kt @@ -33,6 +33,8 @@ object RelayDirectory { // Reading different files made the selections diverge. Selecting from the same // file, with rows keyed and ordered the same way, keeps them aligned. internal const val ASSET_FILE_URL = "https://raw.githubusercontent.com/permissionlesstech/bitchat/refs/heads/main/relays/online_relays_gps.csv" + // Download cache of ASSET_FILE_URL above, and the bundled list the weekly job + // refreshes from it; the file names predate the source's move to online_relays_gps.csv. private const val ASSET_FILE = "nostr_relays.csv" private const val DOWNLOADED_FILE = "nostr_relays_latest.csv" private const val PREFS_NAME = "relay_directory_prefs"