update all the timeline item views to use the new implemementation with nstextattachment

This commit is contained in:
Mauro Romito
2026-05-11 17:11:18 +02:00
committed by Mauro
parent 686753721e
commit 2217803825
12 changed files with 57 additions and 69 deletions
@@ -17,7 +17,7 @@ struct AudioMediaEventsTimelineView: View {
fileSize: timelineItem.content.fileSize,
caption: timelineItem.content.caption,
formattedCaption: timelineItem.content.formattedCaption,
additionalWhitespaces: timelineItem.additionalWhitespaces(),
trailingReservedSize: timelineItem.trailingReservedSize,
isAudioFile: true)
.accessibilityLabel(L10n.commonAudio)
.frame(maxWidth: .infinity, alignment: .leading)
@@ -17,7 +17,7 @@ struct FileMediaEventsTimelineView: View {
fileSize: timelineItem.content.fileSize,
caption: timelineItem.content.caption,
formattedCaption: timelineItem.content.formattedCaption,
additionalWhitespaces: timelineItem.additionalWhitespaces())
trailingReservedSize: timelineItem.trailingReservedSize)
.accessibilityLabel(L10n.commonFile)
.frame(maxWidth: .infinity, alignment: .leading)
.bubbleBackground(isOutgoing: timelineItem.isOutgoing)