|
|
|
@ -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)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
isPinnedIcon.isHidden = (cellViewModel.threadPinnedPriority == 0)
|
|
|
|
|
unreadCountView.isHidden = (unreadCount <= 0)
|
|
|
|
|
unreadImageView.isHidden = (!unreadCountView.isHidden || !threadIsUnread)
|
|
|
|
|