Add post-visibility to notifications (#594)

This commit is contained in:
Nathan Mattes 2023-08-28 12:58:46 +02:00
parent 2957408c0a
commit bbda8c41b6
2 changed files with 3 additions and 3 deletions

View File

@ -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),

View File

@ -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),