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