@ -46,8 +46,6 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
let iconMaskImage = # imageLiteral ( resourceName : " logoSignal " )
let iconMaskImage = # imageLiteral ( resourceName : " logoSignal " )
providerConfiguration . iconTemplateImageData = UIImagePNGRepresentation ( iconMaskImage )
providerConfiguration . iconTemplateImageData = UIImagePNGRepresentation ( iconMaskImage )
// W e s e t t h e r i n g t o n e S o u n d p r o p e r t y l a t e r .
return providerConfiguration
return providerConfiguration
}
}
@ -124,12 +122,6 @@ final class CallKitCallUIAdaptee: NSObject, CallUIAdaptee, CXProviderDelegate {
disableUnsupportedFeatures ( callUpdate : update )
disableUnsupportedFeatures ( callUpdate : update )
// U p d a t e t h e p r o v i d e r c o n f i g u r a t i o n t o r e f l e c t t h e c a l l e r ' s r i n g t o n e .
let sound = OWSSounds . ringtoneSound ( for : call . thread )
let providerConfiguration = provider . configuration
providerConfiguration . ringtoneSound = OWSSounds . filename ( for : sound )
provider . configuration = providerConfiguration
// R e p o r t t h e i n c o m i n g c a l l t o t h e s y s t e m
// R e p o r t t h e i n c o m i n g c a l l t o t h e s y s t e m
provider . reportNewIncomingCall ( with : call . localId , update : update ) { error in
provider . reportNewIncomingCall ( with : call . localId , update : update ) { error in
/*
/*