Fix pin image still showing on statuses after cell reuse

This commit is contained in:
Shadowfacts 2020-06-18 22:23:19 -04:00
parent 1f40cc9928
commit c3c19b1994
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 3 additions and 5 deletions

View File

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