mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Video avatar fixes
This commit is contained in:
@@ -50,6 +50,15 @@ public enum AvatarGalleryEntry: Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
public var immediateThumbnailData: Data? {
|
||||
switch self {
|
||||
case let .topImage(_, _, _, immediateThumbnailData, _):
|
||||
return immediateThumbnailData
|
||||
case let .image(_, _, _, _, _, _, _, _, immediateThumbnailData, _):
|
||||
return immediateThumbnailData
|
||||
}
|
||||
}
|
||||
|
||||
public var videoRepresentations: [TelegramMediaImage.VideoRepresentation] {
|
||||
switch self {
|
||||
case let .topImage(_, videoRepresentations, _, _, _):
|
||||
|
||||
Reference in New Issue
Block a user