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
@@ -18,9 +18,11 @@ struct NoticeRoomTimelineView: View, TextBasedRoomTimelineViewProtocol {
Label {
if let attributedString = timelineItem.content.formattedBody {
FormattedBodyText(attributedString: attributedString, additionalWhitespacesCount: timelineItem.additionalWhitespaces())
FormattedBodyText(attributedString: attributedString,
trailingReservedSize: timelineItem.trailingReservedSize)
} else {
FormattedBodyText(text: timelineItem.content.body, additionalWhitespacesCount: timelineItem.additionalWhitespaces())
FormattedBodyText(text: timelineItem.content.body,
trailingReservedSize: timelineItem.trailingReservedSize)
}
} icon: {
CompoundIcon(\.info, size: .small, relativeTo: .compound.bodyLG)