From c3c19b1994c1e733fe552a57500e827bc6a01244 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 18 Jun 2020 22:23:19 -0400 Subject: [PATCH] Fix pin image still showing on statuses after cell reuse --- Tusker/Views/Status/TimelineStatusTableViewCell.swift | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Tusker/Views/Status/TimelineStatusTableViewCell.swift b/Tusker/Views/Status/TimelineStatusTableViewCell.swift index 359b2ab313..6e27058dc3 100644 --- a/Tusker/Views/Status/TimelineStatusTableViewCell.swift +++ b/Tusker/Views/Status/TimelineStatusTableViewCell.swift @@ -84,11 +84,9 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell { updateTimestamp() - if showPinned { - let pinned = status.pinned ?? false - timestampLabel.isHidden = pinned - pinImageView.isHidden = !pinned - } + let pinned = showPinned && (status.pinned ?? false) + timestampLabel.isHidden = pinned + pinImageView.isHidden = !pinned } @objc override func preferencesChanged() {