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
pull/1/head
Michael Kirk 8 years ago
parent 82a7ec1286
commit b8711f9abc

@ -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)

Loading…
Cancel
Save