Don't incorrectly assign an avatar background when there isn't an image

This commit is contained in:
Maurice Parker 2019-10-30 15:46:20 -05:00
parent 8d85d01da4
commit 30da68218f
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ final class AvatarView: UIView {
override func layoutSubviews() { override func layoutSubviews() {
imageView.setFrameIfNotEqual(rectForImageView()) imageView.setFrameIfNotEqual(rectForImageView())
if (isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable { if (image != nil && isVerticalBackgroundExposed && !isSymbolImage) || !isDisconcernable {
backgroundColor = AppAssets.avatarBackgroundColor backgroundColor = AppAssets.avatarBackgroundColor
} else { } else {
backgroundColor = nil backgroundColor = nil