Show post header thread icon more consistently

This commit is contained in:
Thomas Ricouard 2023-02-19 20:12:31 +01:00
parent 83d236426b
commit a74f292696
2 changed files with 6 additions and 1 deletions

View File

@ -44,6 +44,11 @@ public class StatusRowViewModel: ObservableObject {
status.reblog?.filtered?.first ?? status.filtered?.first
}
var isThread: Bool {
status.reblog?.inReplyToId != nil || status.reblog?.inReplyToAccountId != nil ||
status.inReplyToId != nil || status.inReplyToAccountId != nil
}
var highlightRowColor: Color {
if status.visibility == .direct {
return theme.tintColor.opacity(0.15)

View File

@ -72,7 +72,7 @@ struct StatusRowHeaderView: View {
@ViewBuilder
private var threadIcon: some View {
if viewModel.status.reblog?.inReplyToAccountId != nil || viewModel.status.inReplyToAccountId != nil {
if viewModel.isThread {
Image(systemName: "bubble.left.and.bubble.right")
.resizable()
.aspectRatio(contentMode: .fit)