contact can be nil for outgoing redphone call

Now that it's easier to start a thread with a non-contact recipient this
is more relevant.

// FREEBIE
This commit is contained in:
Michael Kirk 2017-02-06 12:56:54 -05:00
parent 82a7ec1286
commit b8711f9abc
1 changed files with 2 additions and 2 deletions

View File

@ -91,9 +91,9 @@ import Foundation
Logger.info("\(TAG) Placing redphone call to: \(recipientId)")
let number = PhoneNumber.tryParsePhoneNumber(fromUserSpecifiedText: recipientId)
let contact = self.contactsManager.latestContact(for: number)
assert(number != nil)
assert(contact != nil)
let contact: Contact? = self.contactsManager.latestContact(for: number)
redphoneManager.initiateOutgoingCall(to: contact, atRemoteNumber: number)