@ -146,7 +146,11 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R
createViews ( )
createViews ( )
contactNameLabel . text = contactsManager . displayName ( forPhoneIdentifier : thread . contactIdentifier ( ) )
contactNameLabel . text = contactsManager . displayName ( forPhoneIdentifier : thread . contactIdentifier ( ) )
contactAvatarView . image = OWSAvatarBuilder . buildImage ( for : thread , contactsManager : contactsManager , diameter : 400 )
updateAvatarImage ( )
NotificationCenter . default . addObserver ( forName : . OWSContactsManagerSignalAccountsDidChange , object : nil , queue : nil ) { _ in
Logger . info ( " \( self . TAG ) updating avatar image " )
self . updateAvatarImage ( )
}
assert ( call != nil )
assert ( call != nil )
// S u b s c r i b e f o r f u t u r e c a l l u p d a t e s
// S u b s c r i b e f o r f u t u r e c a l l u p d a t e s
@ -314,6 +318,10 @@ class CallViewController: UIViewController, CallObserver, CallServiceObserver, R
button . setImage ( image , for : . selected )
button . setImage ( image , for : . selected )
}
}
func updateAvatarImage ( ) {
contactAvatarView . image = OWSAvatarBuilder . buildImage ( for : thread , contactsManager : contactsManager , diameter : 400 )
}
func createIncomingCallControls ( ) {
func createIncomingCallControls ( ) {
acceptIncomingButton = createButton ( imageName : " call-active-wide " ,
acceptIncomingButton = createButton ( imageName : " call-active-wide " ,