From ff4dff1147f19764c3b336e2539662094fb4a058 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 13 Dec 2022 20:56:08 -0500 Subject: [PATCH] Fix status icons flashing blue during expand/collapse Closes #209 --- Tusker/Views/Status/StatusMetaIndicatorsView.swift | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tusker/Views/Status/StatusMetaIndicatorsView.swift b/Tusker/Views/Status/StatusMetaIndicatorsView.swift index c43779a0..353182f9 100644 --- a/Tusker/Views/Status/StatusMetaIndicatorsView.swift +++ b/Tusker/Views/Status/StatusMetaIndicatorsView.swift @@ -19,6 +19,7 @@ class StatusMetaIndicatorsView: UIView { var secondaryAxisAlignment: Alignment = .leading private var images: [UIImageView] = [] private var isUsingSingleAxis = false + private var statusID: String? private var needsSingleAxis: Bool { traitCollection.preferredContentSizeCategory > .extraLarge @@ -61,6 +62,11 @@ class StatusMetaIndicatorsView: UIView { } func updateUI(status: StatusMO) { + guard statusID != status.id else { + return + } + statusID = status.id + var images: [UIImage] = [] if allowedIndicators.contains(.reply) && Preferences.shared.showIsStatusReplyIcon && status.inReplyToID != nil {