Fix shimmering sticker thumbnails

This commit is contained in:
Ilya Laktyushin
2020-12-21 14:57:14 +04:00
parent ea73e0b9af
commit b00f0076f9
5 changed files with 13 additions and 8 deletions

View File

@@ -65,6 +65,9 @@ class ChatMessageStickerItemNode: ChatMessageItemView {
}
if image != nil {
strongSelf.removePlaceholder(animated: !firstTime)
if firstTime {
strongSelf.imageNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.2)
}
}
firstTime = false
}