diff --git a/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift b/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift index 011435fff..576d2eadf 100644 --- a/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift +++ b/Mastodon/Scene/Share/View/Content/NotificationView+Configuration.swift @@ -99,6 +99,9 @@ extension NotificationView { .store(in: &disposeBag) // timestamp viewModel.timestamp = notification.createAt + + viewModel.visibility = notification.status?.visibility ?? ._other("") + // notification type indicator Publishers.CombineLatest3( notification.publisher(for: \.typeRaw), diff --git a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift index 47b9ea65e..8900b4cb3 100644 --- a/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift +++ b/MastodonSDK/Sources/MastodonUI/View/Content/NotificationView.swift @@ -299,9 +299,6 @@ extension NotificationView { authorSecondaryMetaContainer.addArrangedSubview(dateTrailingDotLabel) dateTrailingDotLabel.setContentCompressionResistancePriority(.required, for: .horizontal) - authorSecondaryMetaContainer.addArrangedSubview(dateTrailingDotLabel) - dateTrailingDotLabel.setContentCompressionResistancePriority(.required, for: .horizontal) - authorSecondaryMetaContainer.addArrangedSubview(visibilityIconImageView) NSLayoutConstraint.activate([ visibilityIconImageView.heightAnchor.constraint(equalTo: authorUsernameLabel.heightAnchor),