Apply design changes from Myles.

This commit is contained in:
Matthew Chen 2018-05-04 13:19:40 -04:00
parent 4e07895853
commit b0c4ad7f63
1 changed files with 3 additions and 1 deletions

View File

@ -736,7 +736,9 @@ class ContactViewController: OWSViewController, CNContactViewControllerDelegate
owsFail("\(ContactViewController.logTag) could not open address.")
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.")
return
}