Merge branch 'mkirk/use-contact-ringtones'
This commit is contained in:
commit
c66fb70b2f
@ -46,8 +46,6 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
|
||||
let iconMaskImage = #imageLiteral(resourceName: "logoSignal")
|
||||
providerConfiguration.iconTemplateImageData = UIImagePNGRepresentation(iconMaskImage)
|
||||
|
||||
// We set the ringtoneSound property later.
|
||||
|
||||
return providerConfiguration
|
||||
}
|
||||
|
||||
@ -124,12 +122,6 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
|
||||
|
||||
disableUnsupportedFeatures(callUpdate: update)
|
||||
|
||||
// Update the provider configuration to reflect the caller's ringtone.
|
||||
let sound = OWSSounds.ringtoneSound(for: call.thread)
|
||||
let providerConfiguration = provider.configuration
|
||||
providerConfiguration.ringtoneSound = OWSSounds.filename(for: sound)
|
||||
provider.configuration = providerConfiguration
|
||||
|
||||
// Report the incoming call to the system
|
||||
provider.reportNewIncomingCall(with: call.localId, update: update) { error in
|
||||
/*
|
||||
|
||||
Loading…
Reference in New Issue
Block a user