mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-05-12 08:31:34 +02:00
Update Ghostgram features
This commit is contained in:
@@ -305,7 +305,7 @@ public class DrawingStickerEntityView: DrawingEntityView {
|
||||
|
||||
var file: TelegramMediaFile?
|
||||
for attribute in gift.attributes {
|
||||
if case let .model(_, fileValue, _) = attribute {
|
||||
if case let StarGift.UniqueGift.Attribute.model(_, fileValue, _, _) = attribute {
|
||||
file = fileValue
|
||||
break
|
||||
}
|
||||
@@ -466,7 +466,7 @@ public class DrawingStickerEntityView: DrawingEntityView {
|
||||
file = fileValue
|
||||
} else if case let .gift(gift, _) = self.stickerEntity.content {
|
||||
for attribute in gift.attributes {
|
||||
if case let .model(_, fileValue, _) = attribute {
|
||||
if case let StarGift.UniqueGift.Attribute.model(_, fileValue, _, _) = attribute {
|
||||
file = fileValue
|
||||
break
|
||||
}
|
||||
@@ -887,7 +887,7 @@ public class DrawingStickerEntityView: DrawingEntityView {
|
||||
} else if case let .gift(gift, _) = self.stickerEntity.content {
|
||||
var file: TelegramMediaFile?
|
||||
for attribute in gift.attributes {
|
||||
if case let .model(_, fileValue, _) = attribute {
|
||||
if case let StarGift.UniqueGift.Attribute.model(_, fileValue, _, _) = attribute {
|
||||
file = fileValue
|
||||
break
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user