forked from shadowfacts/Tusker
Fix content warning label always showing in conversation main status
When the conversation was opened, the status state of the main status would already be known, so the CW label wasn't getting updated or hidden/shown.
This commit is contained in:
parent
7140590ccf
commit
d5232c0b03
|
@ -126,11 +126,12 @@ class BaseStatusTableViewCell: UITableViewCell {
|
|||
|
||||
contentLabel.statusID = statusID
|
||||
|
||||
contentWarningLabel.text = status.spoilerText
|
||||
contentWarningLabel.isHidden = status.spoilerText.isEmpty
|
||||
|
||||
if state.unknown {
|
||||
collapsible = !status.spoilerText.isEmpty
|
||||
var shouldCollapse = collapsible
|
||||
contentWarningLabel.text = status.spoilerText
|
||||
contentWarningLabel.isHidden = status.spoilerText.isEmpty
|
||||
if !shouldCollapse,
|
||||
let text = contentLabel.text,
|
||||
text.count > 500 {
|
||||
|
|
Loading…
Reference in New Issue