Fix conversation main status cell flashing wrong background color

Closes #386
This commit is contained in:
Shadowfacts 2023-05-27 14:52:59 -07:00
parent 06f761bf56
commit 32c5eee0b5
1 changed files with 6 additions and 1 deletions

View File

@ -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