fix: header icon missing issue

This commit is contained in:
CMK 2021-03-16 11:48:33 +08:00
parent 1a3cff8a3a
commit 21f4124747
1 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ extension StatusSection {
) { ) {
if toot.reblog != nil { if toot.reblog != nil {
cell.statusView.headerContainerStackView.isHidden = false cell.statusView.headerContainerStackView.isHidden = false
cell.statusView.headerInfoLabel.attributedText = StatusView.iconAttributedString(image: StatusView.boostIconImage) cell.statusView.headerIconLabel.attributedText = StatusView.iconAttributedString(image: StatusView.boostIconImage)
cell.statusView.headerInfoLabel.text = { cell.statusView.headerInfoLabel.text = {
let author = toot.author let author = toot.author
let name = author.displayName.isEmpty ? author.username : author.displayName let name = author.displayName.isEmpty ? author.username : author.displayName
@ -319,7 +319,7 @@ extension StatusSection {
}() }()
} else if let replyTo = toot.replyTo { } else if let replyTo = toot.replyTo {
cell.statusView.headerContainerStackView.isHidden = false cell.statusView.headerContainerStackView.isHidden = false
cell.statusView.headerInfoLabel.attributedText = StatusView.iconAttributedString(image: StatusView.replyIconImage) cell.statusView.headerIconLabel.attributedText = StatusView.iconAttributedString(image: StatusView.replyIconImage)
cell.statusView.headerInfoLabel.text = { cell.statusView.headerInfoLabel.text = {
let author = replyTo.author let author = replyTo.author
let name = author.displayName.isEmpty ? author.username : author.displayName let name = author.displayName.isEmpty ? author.username : author.displayName