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:
1 parent
67f0e3d296
commit
9dbdf7928a
2 files changed
+2
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -250,6 +250,7 @@ struct ShareExtensionView: View {
|
||||
return false
|
||||
}
|
||||
state = DamusState(keypair: keypair)
|
||||
state?.nostrNetwork.connect()
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user