Update Ghostgram features

This commit is contained in:
ichmagmaus 812
2026-03-07 18:15:32 +01:00
parent 1a3303b059
commit 24a7ec39d9
902 changed files with 148295 additions and 62348 deletions
@@ -515,7 +515,7 @@ public final class GiftItemComponent: Component {
animationOffset = 16.0
for attribute in gift.attributes {
switch attribute {
case let .model(_, file, _):
case let .model(_, file, _, _):
animationFile = file
if !self.fetchedFiles.contains(file.fileId.id) {
self.disposables.add(freeMediaFileResourceInteractiveFetched(account: component.context.account, userLocation: .other, fileReference: .standalone(media: file), resource: file.resource).start())
@@ -606,7 +606,7 @@ public final class GiftItemComponent: Component {
}
for attribute in attributes {
switch attribute {
case let .model(_, file, _):
case let .model(_, file, _, _):
animationFile = file
if !self.fetchedFiles.contains(file.fileId.id) {
self.disposables.add(freeMediaFileResourceInteractiveFetched(account: component.context.account, userLocation: .other, fileReference: .standalone(media: file), resource: file.resource).start())