Multi-session subscriptions and RelayPool reopening
This commit implements nostr network subscriptions that survive between sessions, as well as improved handling of RelayPool opening/closing with respect to the app lifecycle. This prevents stale data after users swap out and back into Damus. Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -15,6 +15,8 @@ final class ThreadModelTests: XCTestCase {
|
||||
override func setUpWithError() throws {
|
||||
// Put setup code here. This method is called before the invocation of each test method in the class.
|
||||
damusState = generate_test_damus_state(mock_profile_info: nil)
|
||||
try! damusState?.nostrNetwork.userRelayList.set(userRelayList: NIP65.RelayList())
|
||||
damusState?.nostrNetwork.connect()
|
||||
|
||||
let notesJSONL = getTestNotesJSONL()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user