mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Content scanner also checks for thumbnails (#5911)
* scan also thumbnails for medias * pr suggestion
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@ struct FileMediaEventsTimelineView: View {
|
||||
formattedCaption: timelineItem.content.formattedCaption,
|
||||
trailingReservedSize: timelineItem.trailingReservedSize,
|
||||
contentScannerService: context?.contentScannerService,
|
||||
mediaSource: timelineItem.content.source)
|
||||
mediaSource: timelineItem.content.source,
|
||||
thumbnailSource: timelineItem.content.thumbnailSource)
|
||||
.accessibilityLabel(L10n.commonFile)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.bubbleBackground(isOutgoing: timelineItem.isOutgoing,
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@ struct ImageMediaEventsTimelineView: View {
|
||||
|
||||
var body: some View {
|
||||
ContentScanningView(contentScannerService: context?.contentScannerService,
|
||||
mediaSource: timelineItem.content.imageInfo.source) {
|
||||
mediaSource: timelineItem.content.imageInfo.source,
|
||||
thumbnailSource: timelineItem.content.thumbnailInfo?.source) {
|
||||
Color.clear // Let the image aspect fill in place
|
||||
.aspectRatio(1, contentMode: .fill)
|
||||
.overlay {
|
||||
|
||||
+2
-1
@@ -15,7 +15,8 @@ struct VideoMediaEventsTimelineView: View {
|
||||
|
||||
var body: some View {
|
||||
ContentScanningView(contentScannerService: context?.contentScannerService,
|
||||
mediaSource: timelineItem.content.videoInfo.source) {
|
||||
mediaSource: timelineItem.content.videoInfo.source,
|
||||
thumbnailSource: timelineItem.content.thumbnailInfo?.source) {
|
||||
Color.clear // Let the image aspect fill in place
|
||||
.aspectRatio(1, contentMode: .fill)
|
||||
.overlay {
|
||||
|
||||
Reference in New Issue
Block a user