mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-06 12:28:29 +00:00
Group image and video metadata in specialised structs (#3518)
This commit is contained in:
+2
-6
@@ -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?
|
||||
|
||||
+2
-8
@@ -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?
|
||||
|
||||
+1
-3
@@ -17,10 +17,8 @@ struct StickerRoomTimelineItem: EventBasedTimelineItemProtocol, Equatable {
|
||||
|
||||
let sender: TimelineItemSender
|
||||
|
||||
let imageURL: URL
|
||||
let imageInfo: ImageInfoProxy
|
||||
|
||||
var size: CGSize?
|
||||
var aspectRatio: CGFloat?
|
||||
var blurhash: String?
|
||||
|
||||
var properties = RoomTimelineItemProperties()
|
||||
|
||||
Reference in New Issue
Block a user