mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Fixed the message node intent (#1362)
This commit is contained in:
parent
40b28b7523
commit
ae9fa586ba
4 changed files with 12 additions and 4 deletions
|
|
@ -23,7 +23,7 @@ struct MessageNodeIntent: AppIntent {
|
|||
Summary("Send \(\.$messageContent) to \(\.$nodeNumber)")
|
||||
}
|
||||
func perform() async throws -> some IntentResult {
|
||||
if !AccessoryManager.shared.isConnected {
|
||||
if await !AccessoryManager.shared.isConnected {
|
||||
throw AppIntentErrors.AppIntentError.notConnected
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -483,7 +483,7 @@ struct NodeDetail: View {
|
|||
do {
|
||||
_ = try await accessoryManager.requestDeviceMetadata(
|
||||
fromUser: connectedNode.user!,
|
||||
toUser: node.user!,
|
||||
toUser: node.user!
|
||||
)
|
||||
Logger.mesh.info("Sent node metadata request from node details")
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue