Add network connect call to extensions

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 <daniel@daquino.me>
This commit is contained in:
Daniel D’Aquino
2025-04-21 15:20:09 -07:00
parent 67f0e3d296
commit 9dbdf7928a
2 changed files with 2 additions and 0 deletions

View File

@@ -135,6 +135,7 @@ struct ShareExtensionView: View {
return return
} }
self.state = DamusState(keypair: keypair) self.state = DamusState(keypair: keypair)
self.state?.nostrNetwork.connect()
}) })
.onChange(of: self.highlighter_state) { .onChange(of: self.highlighter_state) {
if case .cancelled = highlighter_state { if case .cancelled = highlighter_state {

View File

@@ -250,6 +250,7 @@ struct ShareExtensionView: View {
return false return false
} }
state = DamusState(keypair: keypair) state = DamusState(keypair: keypair)
state?.nostrNetwork.connect()
return true return true
} }