Adjusted low image quality cutoff to work with retina and super retina displays.

This commit is contained in:
Maurice Parker 2019-04-17 07:25:26 -05:00
parent ce0e548e79
commit 47ac7bdd00
1 changed files with 2 additions and 1 deletions

View File

@ -178,7 +178,8 @@ private extension MasterTimelineTableViewCell {
func updateAvatar() { func updateAvatar() {
// The avatar should be bigger than a favicon. Theyre too small; they look weird. // The avatar should be bigger than a favicon. Theyre too small; they look weird.
guard let image = cellData.avatar, cellData.showAvatar, image.size.height >= 22.0, image.size.width >= 22.0 else { let minDimension = 22.0 * RSScreen.mainScreenScale
guard let image = cellData.avatar, cellData.showAvatar, image.size.height >= minDimension, image.size.width >= minDimension else {
makeAvatarEmpty() makeAvatarEmpty()
return return
} }