mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-07 06:43:43 +00:00
Fix football dice emoji
This commit is contained in:
parent
8d1f30a0b0
commit
a0e2a91e3a
@ -228,7 +228,7 @@ class ChatMessageAnimatedStickerItemNode: ChatMessageItemView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if let telegramDice = self.telegramDice {
|
if let telegramDice = self.telegramDice {
|
||||||
let animationNode = ManagedDiceAnimationNode(context: item.context, emoji: telegramDice.emoji)
|
let animationNode = ManagedDiceAnimationNode(context: item.context, emoji: telegramDice.emoji.strippedEmoji)
|
||||||
if !item.message.effectivelyIncoming(item.context.account.peerId) {
|
if !item.message.effectivelyIncoming(item.context.account.peerId) {
|
||||||
animationNode.success = { [weak self] in
|
animationNode.success = { [weak self] in
|
||||||
if let strongSelf = self, let item = strongSelf.item {
|
if let strongSelf = self, let item = strongSelf.item {
|
||||||
|
|||||||
@ -72,7 +72,7 @@ private func rollingAnimationItem(account: Account, emojis: Signal<[TelegramMedi
|
|||||||
return .single(ManagedAnimationItem(source: .local("Darts_Aiming"), loop: true))
|
return .single(ManagedAnimationItem(source: .local("Darts_Aiming"), loop: true))
|
||||||
case "🏀":
|
case "🏀":
|
||||||
return .single(ManagedAnimationItem(source: .local("Basketball_Bouncing"), loop: true))
|
return .single(ManagedAnimationItem(source: .local("Basketball_Bouncing"), loop: true))
|
||||||
case "⚽️":
|
case "⚽":
|
||||||
return .single(ManagedAnimationItem(source: .local("Football_Bouncing"), loop: true))
|
return .single(ManagedAnimationItem(source: .local("Football_Bouncing"), loop: true))
|
||||||
default:
|
default:
|
||||||
return animationItem(account: account, emojis: emojis, emoji: emoji, value: nil, loop: true)
|
return animationItem(account: account, emojis: emojis, emoji: emoji, value: nil, loop: true)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user