From 6daa4f7e13c5669139b202464918c0330c83b4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Thu, 23 Nov 2023 00:38:08 +0000 Subject: [PATCH] Add regional relays for Thailand and Germany. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit adds region-specific relays for Thailand and Germany. The list was blindly copied and pasted from the tickets. Testing ------- Device: iPhone 15 Pro simulator iOS: 17.0.1 Damus: A locally modded version combining these changes with changes made in #1730 (A bit hacky, but makes testing faster) Steps: 1. Change region to Canada. Only international relays should be shown in recommended relay list. PASS 2. Change region to Japan. International + Japanese relays should be shown in the recommended list. PASS 3. Repeat step (2) for Thailand and Germany. International + corresponding regional relays should be shown. PASS Changelog-Added: Add regional relays for Thailand Closes: https://github.com/damus-io/damus/issues/1698 Changelog-Added: Add regional relays for Germany Closes: https://github.com/damus-io/damus/issues/1750 Signed-off-by: Daniel D’Aquino Reviewed-by: William Casarin Signed-off-by: William Casarin --- damus/Util/Relays/RelayBootstrap.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/damus/Util/Relays/RelayBootstrap.swift b/damus/Util/Relays/RelayBootstrap.swift index 712ef7d2..b68d7e1d 100644 --- a/damus/Util/Relays/RelayBootstrap.swift +++ b/damus/Util/Relays/RelayBootstrap.swift @@ -19,6 +19,16 @@ let REGION_SPECIFIC_BOOTSTRAP_RELAYS: [Locale.Region: [String]] = [ "wss://relay-jp.nostr.wirednet.jp", "wss://yabu.me", "wss://r.kojira.io", + ], + Locale.Region.thailand: [ + "wss://relay.siamstr.com", + "wss://relay.zerosatoshi.xyz", + "wss://th2.nostr.earnkrub.xyz", + ], + Locale.Region.germany: [ + "wss://nostr.einundzwanzig.space", + "wss://nostr.cercatrova.me", + "wss://nostr.bitcoinplebs.de", ] ]