@ -65,7 +65,13 @@ import Foundation
} ,
failure : { error in
Logger . warn ( " \( self . TAG ) looking up recipientId: \( recipientId ) failed with error \( error ) " )
// T O D O f a i l w i t h a l e r t . e . g . w h e n s o m e o n e t r i e s t o c a l l a n o n s i g n a l u s e r f r o m t h e i r c o n t a c t s w e s h o u l d i n f o r m t h e m .
let alertTitle = NSLocalizedString ( " UNABLE_TO_PLACE_CALL " , comment : " Alert Title " )
let alertController = UIAlertController ( title : alertTitle , message : error . localizedDescription , preferredStyle : . alert )
let dismissAction = UIAlertAction ( title : NSLocalizedString ( " DISMISS_BUTTON_TEXT " , comment : " Generic short text for button to dismiss a dialog " ) , style : . default )
alertController . addAction ( dismissAction )
UIApplication . shared . keyWindow ? . rootViewController ? . present ( alertController , animated : true , completion : nil )
} )
// S i n c e w e ' v e a l r e a d y d i s p a t c h e d a s y n c t o m a k e s u r e w e h a v e f r e s h w e b r t c p r e f e r e n c e d a t a