From 9dbdf7928a10a6d2d84cd604d443a97858ed24c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20D=E2=80=99Aquino?= Date: Mon, 21 Apr 2025 15:20:09 -0700 Subject: [PATCH] Add network connect call to extensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit fixes a regression on the highlighter and share extensions, which was caused by a change in the code's architecture, which required the network manager to be initialized. Fixes: 8d48f77d95138c93ed93989989fa930b61c2d6fb Closes: https://github.com/damus-io/damus/issues/2955 Signed-off-by: Daniel D’Aquino --- highlighter action extension/ActionViewController.swift | 1 + share extension/ShareViewController.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/highlighter action extension/ActionViewController.swift b/highlighter action extension/ActionViewController.swift index 7fbab04f..46a63b48 100644 --- a/highlighter action extension/ActionViewController.swift +++ b/highlighter action extension/ActionViewController.swift @@ -135,6 +135,7 @@ struct ShareExtensionView: View { return } self.state = DamusState(keypair: keypair) + self.state?.nostrNetwork.connect() }) .onChange(of: self.highlighter_state) { if case .cancelled = highlighter_state { diff --git a/share extension/ShareViewController.swift b/share extension/ShareViewController.swift index fa68dfb2..2afa8624 100644 --- a/share extension/ShareViewController.swift +++ b/share extension/ShareViewController.swift @@ -250,6 +250,7 @@ struct ShareExtensionView: View { return false } state = DamusState(keypair: keypair) + state?.nostrNetwork.connect() return true }