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:
parent
82a7ec1286
commit
b8711f9abc
|
@ -91,9 +91,9 @@ import Foundation
|
||||||
Logger.info("\(TAG) Placing redphone call to: \(recipientId)")
|
Logger.info("\(TAG) Placing redphone call to: \(recipientId)")
|
||||||
|
|
||||||
let number = PhoneNumber.tryParsePhoneNumber(fromUserSpecifiedText: recipientId)
|
let number = PhoneNumber.tryParsePhoneNumber(fromUserSpecifiedText: recipientId)
|
||||||
let contact = self.contactsManager.latestContact(for: number)
|
|
||||||
assert(number != nil)
|
assert(number != nil)
|
||||||
assert(contact != nil)
|
|
||||||
|
let contact: Contact? = self.contactsManager.latestContact(for: number)
|
||||||
|
|
||||||
redphoneManager.initiateOutgoingCall(to: contact, atRemoteNumber: number)
|
redphoneManager.initiateOutgoingCall(to: contact, atRemoteNumber: number)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue