Skip to content

Commit

Permalink
Populate the Owner Info and Automatic Link Title Changes from Setting…
Browse files Browse the repository at this point in the history
…s when creating an Outline from Shortcuts
  • Loading branch information
vincode-io committed Dec 30, 2023
1 parent 407421b commit 1cb28b3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Zavala/Intents/Outline/AddOutlineIntentHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ class AddOutlineIntentHandler: NSObject, ZavalaIntentHandler, AddOutlineIntentHa
completion(.init(code: .failure, userActivity: nil))
return
}


let defaults = AppDefaults.shared
outline.update(autoLinkingEnabled: defaults.autoLinkingEnabled,
ownerName: defaults.ownerName,
ownerEmail: defaults.ownerEmail,
ownerURL: defaults.ownerURL)

suspend()
let response = AddOutlineIntentResponse(code: .success, userActivity: nil)
response.outline = IntentOutline(outline)
Expand Down

0 comments on commit 1cb28b3

Please sign in to comment.