Fix pin image still showing on statuses after cell reuse
This commit is contained in:
parent
1f40cc9928
commit
c3c19b1994
|
@ -84,12 +84,10 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell {
|
||||||
|
|
||||||
updateTimestamp()
|
updateTimestamp()
|
||||||
|
|
||||||
if showPinned {
|
let pinned = showPinned && (status.pinned ?? false)
|
||||||
let pinned = status.pinned ?? false
|
|
||||||
timestampLabel.isHidden = pinned
|
timestampLabel.isHidden = pinned
|
||||||
pinImageView.isHidden = !pinned
|
pinImageView.isHidden = !pinned
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@objc override func preferencesChanged() {
|
@objc override func preferencesChanged() {
|
||||||
super.preferencesChanged()
|
super.preferencesChanged()
|
||||||
|
|
Loading…
Reference in New Issue