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
}