damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 6daa4f7e13c5669139b202464918c0330c83b4a8
parent 9686f82e8f2748ad713c1fd11328692438d7aaed
Author: Daniel D’Aquino <daniel@daquino.me>
Date:   Thu, 23 Nov 2023 00:38:08 +0000

Add regional relays for Thailand and Germany.

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 <daniel@daquino.me>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mdamus/Util/Relays/RelayBootstrap.swift | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git 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", ] ]