mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-12-25 14:32:20 +01:00
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
Block a user