From cae3e45de0c3f3857065e021c0520f469268573f Mon Sep 17 00:00:00 2001 From: CMK Date: Sat, 3 Jul 2021 03:32:32 +0800 Subject: [PATCH] fix: cell reuse issue for refactored notification cell --- Mastodon/Diffiable/Section/NotificationSection.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Mastodon/Diffiable/Section/NotificationSection.swift b/Mastodon/Diffiable/Section/NotificationSection.swift index 0289bc4fc..42bef444d 100644 --- a/Mastodon/Diffiable/Section/NotificationSection.swift +++ b/Mastodon/Diffiable/Section/NotificationSection.swift @@ -107,6 +107,7 @@ extension NotificationSection { requestUserID: notification.userID, statusItemAttribute: attribute ) + cell.statusContainerView.isHidden = false cell.containerStackView.alignment = .top cell.containerStackViewBottomLayoutConstraint.constant = 0 } else { @@ -119,10 +120,6 @@ extension NotificationSection { cell.containerStackViewBottomLayoutConstraint.constant = 5 // 5pt margin when no status view } - // make constraint change take effect - cell.setNeedsLayout() - cell.layoutIfNeeded() - return cell case .bottomLoader: