diff --git a/Session/Shared/FullConversationCell.swift b/Session/Shared/FullConversationCell.swift index a0bbd180a..dc9b721c7 100644 --- a/Session/Shared/FullConversationCell.swift +++ b/Session/Shared/FullConversationCell.swift @@ -13,7 +13,13 @@ public final class FullConversationCell: UITableViewCell, SwipeActionOptimisticC // MARK: - UI - private let accentLineView: UIView = UIView() + private let accentLineView: UIView = { + let result: UIView = UIView() + result.themeBackgroundColor = .conversationButton_unreadStripBackground + result.alpha = 0 + + return result + }() private lazy var profilePictureView: ProfilePictureView = ProfilePictureView(size: .list) @@ -430,15 +436,7 @@ public final class FullConversationCell: UITableViewCell, SwipeActionOptimisticC self.themeBackgroundColor = themeBackgroundColor self.selectedBackgroundView?.themeBackgroundColor = .highlighted(themeBackgroundColor) - if cellViewModel.threadIsBlocked == true { - accentLineView.themeBackgroundColor = .danger - accentLineView.alpha = 1 - } - else { - accentLineView.themeBackgroundColor = .conversationButton_unreadStripBackground - accentLineView.alpha = (unreadCount > 0 ? 1 : 0) - } - + accentLineView.alpha = (unreadCount > 0 ? 1 : 0) isPinnedIcon.isHidden = (cellViewModel.threadPinnedPriority == 0) unreadCountView.isHidden = (unreadCount <= 0) unreadImageView.isHidden = (!unreadCountView.isHidden || !threadIsUnread)