From 32c5eee0b5d654430c3082dfc4a08481810e99c9 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 27 May 2023 14:52:59 -0700 Subject: [PATCH] Fix conversation main status cell flashing wrong background color Closes #386 --- .../Status/ConversationMainStatusCollectionViewCell.swift | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Tusker/Views/Status/ConversationMainStatusCollectionViewCell.swift b/Tusker/Views/Status/ConversationMainStatusCollectionViewCell.swift index 5c5cbf00..bf85d7b8 100644 --- a/Tusker/Views/Status/ConversationMainStatusCollectionViewCell.swift +++ b/Tusker/Views/Status/ConversationMainStatusCollectionViewCell.swift @@ -326,7 +326,12 @@ class ConversationMainStatusCollectionViewCell: UICollectionViewListCell, Status } override func updateConfiguration(using state: UICellConfigurationState) { - backgroundConfiguration = .appListPlainCell(for: state) + var config = UIBackgroundConfiguration.listPlainCell().updated(for: state) + // conv main status isn't selectable + if !state.isFocused { + config.backgroundColor = .appBackground + } + backgroundConfiguration = config } // MARK: Configure UI