Video avatar fixes

This commit is contained in:
Ilya Laktyushin
2020-07-12 23:35:30 +03:00
parent 5a6951703a
commit 5896f73e4a
8 changed files with 68 additions and 18 deletions

View File

@@ -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, _, _, _):