diff --git a/Packages/Notifications/Sources/Notifications/NotificationRowView.swift b/Packages/Notifications/Sources/Notifications/NotificationRowView.swift index a831e5f6..a428331f 100644 --- a/Packages/Notifications/Sources/Notifications/NotificationRowView.swift +++ b/Packages/Notifications/Sources/Notifications/NotificationRowView.swift @@ -94,7 +94,7 @@ struct NotificationRowView: View { .frame(height: AvatarView.FrameConfig.status.size.height + 2) }.offset(y: -1) } - if reasons.isEmpty { + if !reasons.contains(.placeholder) { HStack(spacing: 0) { EmojiTextApp(.init(stringValue: notification.accounts[0].safeDisplayName), emojis: notification.accounts[0].emojis, diff --git a/Packages/Status/Sources/Status/Row/StatusRowView.swift b/Packages/Status/Sources/Status/Row/StatusRowView.swift index 168ba825..6f79d271 100644 --- a/Packages/Status/Sources/Status/Row/StatusRowView.swift +++ b/Packages/Status/Sources/Status/Row/StatusRowView.swift @@ -96,7 +96,7 @@ public struct StatusRowView: View { accessibilityActions } } - if reasons.isEmpty, + if !reasons.contains(.placeholder), viewModel.showActions, isFocused || theme.statusActionsDisplay != .none, !isInCaptureMode { StatusRowActionsView(viewModel: viewModel) @@ -115,7 +115,7 @@ public struct StatusRowView: View { } .onAppear { viewModel.markSeen() - if reasons.isEmpty { + if !reasons.contains(.placeholder) { if !isCompact, viewModel.embeddedStatus == nil { Task { await viewModel.loadEmbeddedStatus() diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContentView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContentView.swift index dff012ae..f89226a8 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowContentView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowContentView.swift @@ -20,7 +20,7 @@ struct StatusRowContentView: View { if !viewModel.displaySpoiler { StatusRowTextView(viewModel: viewModel) - if reasons.isEmpty { + if !reasons.contains(.placeholder) { StatusRowTranslateView(viewModel: viewModel) } if let poll = viewModel.finalStatus.poll { diff --git a/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift b/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift index c32d2bb0..c7ebddf0 100644 --- a/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift +++ b/Packages/Status/Sources/Status/Row/Subviews/StatusRowHeaderView.swift @@ -53,13 +53,13 @@ struct StatusRowHeaderView: View { .lineLimit(1) .accountPopover(viewModel.finalStatus.account) - if redactionReasons.isEmpty { + if !redactionReasons.contains(.placeholder) { accountBadgeView .font(.footnote) } } .layoutPriority(1) - if redactionReasons.isEmpty { + if !redactionReasons.contains(.placeholder) { if theme.avatarPosition == .leading { dateView } else {