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,12 +84,10 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell {
updateTimestamp()
if showPinned {
let pinned = status.pinned ?? false
let pinned = showPinned && (status.pinned ?? false)
timestampLabel.isHidden = pinned
pinImageView.isHidden = !pinned
}
}
@objc override func preferencesChanged() {
super.preferencesChanged()