Fixed the message node intent (#1362)

This commit is contained in:
Benjamin Faershtein 2025-08-29 08:06:55 -07:00 committed by GitHub
parent 40b28b7523
commit ae9fa586ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 12 additions and 4 deletions

View file

@ -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
}

View file

@ -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 {