mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix emoji interaction json parsing
This commit is contained in:
parent
4d10406d3e
commit
f16431d83f
@ -32,7 +32,7 @@ public struct EmojiInteraction: Equatable {
|
||||
var animations: [EmojiInteraction.Animation] = []
|
||||
for animationDict in animationsArray {
|
||||
if let animationDict = animationDict as? [String: Any] {
|
||||
if let index = animationDict["i"] as? Int, let timeOffset = animationDict["t"] as? Float {
|
||||
if let index = animationDict["i"] as? Int, let timeOffset = animationDict["t"] as? Double {
|
||||
animations.append(EmojiInteraction.Animation(index: index, timeOffset: timeOffset))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user