mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various improvements
This commit is contained in:
parent
b87e3e0b1a
commit
9dafff310d
@ -1906,15 +1906,10 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
||||
return .optionalAction({
|
||||
item.controllerInteraction.displayDiceTooltip(dice)
|
||||
})
|
||||
} else if let _ = self.emojiFile {
|
||||
// if let emojiFile = self.emojiFile, emojiFile.isCustomEmoji {
|
||||
// return .optionalAction({
|
||||
// let _ = item.controllerInteraction.openMessage(item.message, .default)
|
||||
// })
|
||||
// } else
|
||||
} else if let emojiFile = self.emojiFile {
|
||||
if let animationNode = self.animationNode as? AnimatedStickerNode, let _ = recognizer {
|
||||
var shouldPlay = false
|
||||
if !animationNode.isPlaying {
|
||||
if !animationNode.isPlaying && !emojiFile.isCustomEmoji {
|
||||
shouldPlay = true
|
||||
}
|
||||
|
||||
@ -2036,6 +2031,8 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
||||
self.playAdditionalEmojiAnimation(index: index)
|
||||
}
|
||||
}
|
||||
} else if emojiFile.isCustomEmoji {
|
||||
let _ = item.controllerInteraction.openMessage(item.message, .default)
|
||||
}
|
||||
|
||||
if shouldPlay {
|
||||
|
Loading…
x
Reference in New Issue
Block a user