mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Avatar icon when creating a contact (and more generally with empty display name)
This commit is contained in:
parent
8cbeac0e54
commit
bac9d2b98e
1 changed files with 3 additions and 0 deletions
|
|
@ -115,6 +115,9 @@ class Avatar : UIView {
|
|||
if (shared == nil) {
|
||||
prepareIt()
|
||||
}
|
||||
if (displayName.replacingOccurrences(of: " ", with: "").count == 0) {
|
||||
return Avatar.singleAvatar
|
||||
}
|
||||
shared?.initialsLabel.text = Address.initials(displayName: displayName)
|
||||
shared?.initialsLabel.isHidden = false
|
||||
shared?.iconImageView.isHidden = true
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue