Animated emoji animations fixes

This commit is contained in:
Ilya Laktyushin
2021-09-13 18:55:59 +03:00
parent f16431d83f
commit 5fb5c433bc
2 changed files with 16 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ public struct EmojiInteraction: Equatable {
for animationDict in animationsArray {
if let animationDict = animationDict as? [String: Any] {
if let index = animationDict["i"] as? Int, let timeOffset = animationDict["t"] as? Double {
animations.append(EmojiInteraction.Animation(index: index, timeOffset: timeOffset))
animations.append(EmojiInteraction.Animation(index: index, timeOffset: Float(timeOffset)))
}
}
}