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