mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Serialization update
This commit is contained in:
@@ -331,7 +331,7 @@ public class ItemListReactionItemNode: ListViewItemNode, ItemListItemNode {
|
||||
if let availableReactions = item.availableReactions {
|
||||
for reaction in availableReactions.reactions {
|
||||
if reaction.value == item.reaction {
|
||||
animationContent = .file(file: reaction.selectAnimation)
|
||||
animationContent = .file(file: reaction.selectAnimation._parse())
|
||||
break
|
||||
}
|
||||
}
|
||||
@@ -342,7 +342,7 @@ public class ItemListReactionItemNode: ListViewItemNode, ItemListItemNode {
|
||||
if let availableReactions = item.availableReactions {
|
||||
for reaction in availableReactions.reactions {
|
||||
if reaction.value == item.reaction {
|
||||
animationContent = .file(file: reaction.selectAnimation)
|
||||
animationContent = .file(file: reaction.selectAnimation._parse())
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
@@ -194,6 +194,7 @@ class ReactionChatPreviewItemNode: ListViewItemNode {
|
||||
return
|
||||
}
|
||||
if let itemFile = files[fileId] {
|
||||
let itemFile = TelegramMediaFile.Accessor(itemFile)
|
||||
let reactionItem = ReactionItem(
|
||||
reaction: ReactionItem.Reaction(rawValue: .custom(itemFile.fileId.id)),
|
||||
appearAnimation: itemFile,
|
||||
|
||||
Reference in New Issue
Block a user