commit 9dbdf7928a10a6d2d84cd604d443a97858ed24c8
parent 67f0e3d2967b3d436d431e3660436db1634e228c
Author: Daniel D’Aquino <daniel@daquino.me>
Date: Mon, 21 Apr 2025 15:20:09 -0700
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>
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git 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
@@ -250,6 +250,7 @@ struct ShareExtensionView: View {
return false
}
state = DamusState(keypair: keypair)
+ state?.nostrNetwork.connect()
return true
}