Fix status icons flashing blue during expand/collapse

Closes #209
This commit is contained in:
Shadowfacts 2022-12-13 20:56:08 -05:00
parent ba1eed7a85
commit ff4dff1147
1 changed files with 6 additions and 0 deletions

View File

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