Skip to content

Commit 9dbdf79

Browse files
committed
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: 8d48f77 Closes: #2955 Signed-off-by: Daniel D’Aquino <[email protected]>
1 parent 67f0e3d commit 9dbdf79

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

highlighter action extension/ActionViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ struct ShareExtensionView: View {
135135
return
136136
}
137137
self.state = DamusState(keypair: keypair)
138+
self.state?.nostrNetwork.connect()
138139
})
139140
.onChange(of: self.highlighter_state) {
140141
if case .cancelled = highlighter_state {

share extension/ShareViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ struct ShareExtensionView: View {
250250
return false
251251
}
252252
state = DamusState(keypair: keypair)
253+
state?.nostrNetwork.connect()
253254
return true
254255
}
255256

0 commit comments

Comments
 (0)