From 087d3e16a1992e175ee91817d957c08f4ab0a4d1 Mon Sep 17 00:00:00 2001 From: Bryan Montz Date: Sat, 17 Jun 2023 08:56:33 -0500 Subject: [PATCH] After loading the user's relays from their contact event, connect to new relays Closes: #1298 --- damus/Models/HomeModel.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift index 1557a867..5d30ddda 100644 --- a/damus/Models/HomeModel.swift +++ b/damus/Models/HomeModel.swift @@ -858,6 +858,7 @@ func load_our_relays(state: DamusState, m_old_ev: NostrEvent?, ev: NostrEvent) { if changed { save_bootstrap_relays(pubkey: state.pubkey, relays: Array(new)) + state.pool.connect() notify(.relays_changed, ()) } }