mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Fix chart zooming crash
This commit is contained in:
@@ -148,7 +148,12 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
||||
}
|
||||
|
||||
private func setupNode(item: ChatMessageItem) {
|
||||
if let telegramDice = self.telegramDice, let diceEmojis = item.associatedData.animatedEmojiStickers["🎲"] {
|
||||
guard self.animationNode == nil else {
|
||||
return
|
||||
}
|
||||
|
||||
if let _ = self.telegramDice {
|
||||
let diceEmojis = item.associatedData.animatedEmojiStickers["🎲"] ?? []
|
||||
let animationNode = ManagedDiceAnimationNode(context: item.context, emojis: diceEmojis.map { $0.file })
|
||||
self.animationNode = animationNode
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user