|
|
@ -736,7 +736,9 @@ class ContactViewController: OWSViewController, CNContactViewControllerDelegate
|
|
|
|
owsFail("\(ContactViewController.logTag) could not open address.")
|
|
|
|
owsFail("\(ContactViewController.logTag) could not open address.")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
guard let url = NSURL(string: "http://maps.apple.com/?address=\(escapedMapAddress)") else {
|
|
|
|
// Note that we use "q" (i.e. query) rather than "address" since we can't assume
|
|
|
|
|
|
|
|
// this is a well-formed address.
|
|
|
|
|
|
|
|
guard let url = NSURL(string: "http://maps.apple.com/?q=\(escapedMapAddress)") else {
|
|
|
|
owsFail("\(ContactViewController.logTag) could not open address.")
|
|
|
|
owsFail("\(ContactViewController.logTag) could not open address.")
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|