Stop hiding replies in threaded timelines as that's now properly supported as of https://github.com/matrix-org/matrix-rust-sdk/pull/5198

This commit is contained in:
Stefan Ceriu
2025-06-10 12:39:44 +03:00
committed by Stefan Ceriu
parent b2b38e0f80
commit 4f82e559dc

View File

@@ -183,7 +183,7 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
.layoutPriority(TimelineBubbleLayout.Priority.regularText)
}
if shouldShowReplyDetails, let replyDetails = timelineItem.properties.replyDetails {
if let replyDetails = timelineItem.properties.replyDetails {
// The rendered reply bubble with a greedy width. The custom layout prevents
// the infinite width from increasing the overall width of the view.
@@ -212,10 +212,6 @@ struct TimelineItemBubbledStylerView<Content: View>: View {
}
}
private var shouldShowReplyDetails: Bool {
!timelineItem.properties.isThreaded || (timelineItem.properties.isThreaded && !context.viewState.timelineKind.isThread)
}
private var messageBubbleTopPadding: CGFloat {
guard timelineItem.isOutgoing || isDirectOneToOneRoom else { return 0 }
return timelineGroupStyle == .single || timelineGroupStyle == .first ? 8 : 0