Fix animated emoji in bot button icons

This commit is contained in:
cdscih 2026-05-22 12:37:37 +02:00
parent ffd82647ee
commit 0eb7d92296
2 changed files with 4 additions and 4 deletions

View file

@ -164,9 +164,9 @@ private final class ChatButtonKeyboardInputButtonNode: HighlightTrackingButtonNo
size: iconSize,
placeholderColor: theme.overallDarkAppearance ? UIColor(white: 1.0, alpha: 0.1) : UIColor(white: 0.0, alpha: 0.1),
themeColor: theme.list.itemPrimaryTextColor,
loopMode: .count(0)
loopMode: .forever
),
isVisibleForAnimations: true,
isVisibleForAnimations: context.sharedContext.energyUsageSettings.loopEmoji,
action: nil
)),
environment: {},

View file

@ -558,9 +558,9 @@ private final class ChatMessageActionButtonNode: ASDisplayNode {
size: emojiIconSize,
placeholderColor: theme.theme.overallDarkAppearance ? UIColor(white: 1.0, alpha: 0.1) : UIColor(white: 0.0, alpha: 0.1),
themeColor: titleColor,
loopMode: .count(0)
loopMode: .forever
),
isVisibleForAnimations: true,
isVisibleForAnimations: context.sharedContext.energyUsageSettings.loopEmoji,
action: nil
)),
environment: {},