Show post header thread icon more consistently
This commit is contained in:
parent
83d236426b
commit
a74f292696
|
@ -43,6 +43,11 @@ public class StatusRowViewModel: ObservableObject {
|
|||
var filter: Filtered? {
|
||||
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 {
|
||||
|
|
|
@ -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