Group image and video metadata in specialised structs (#3518)

This commit is contained in:
Stefan Ceriu
2024-11-15 15:00:27 +02:00
committed by GitHub
parent 4ea276dc99
commit ef288a9662
27 changed files with 232 additions and 214 deletions
@@ -14,13 +14,9 @@ struct ImageRoomTimelineItemContent: Hashable {
var formattedCaption: AttributedString?
/// The original textual representation of the formatted caption directly from the event (usually HTML code)
var formattedCaptionHTMLString: String?
let source: MediaSourceProxy
var size: CGSize?
var aspectRatio: CGFloat?
let thumbnailSource: MediaSourceProxy?
var thumbnailSize: CGSize?
var thumbnailAspectRatio: CGFloat?
let imageInfo: ImageInfoProxy
let thumbnailInfo: ImageInfoProxy?
var blurhash: String?
var contentType: UTType?
@@ -14,15 +14,9 @@ struct VideoRoomTimelineItemContent: Hashable {
var formattedCaption: AttributedString?
/// The original textual representation of the formatted caption directly from the event (usually HTML code)
var formattedCaptionHTMLString: String?
let duration: TimeInterval
let source: MediaSourceProxy?
var size: CGSize?
var aspectRatio: CGFloat?
let thumbnailSource: MediaSourceProxy?
var thumbnailSize: CGSize?
var thumbnailAspectRatio: CGFloat?
let videoInfo: VideoInfoProxy
let thumbnailInfo: ImageInfoProxy?
var blurhash: String?
var contentType: UTType?