Show post header thread icon more consistently
This commit is contained in:
parent
83d236426b
commit
a74f292696
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue