Fix crash when disabling hide status actions in timeline

This commit is contained in:
Shadowfacts 2022-04-09 15:05:49 -04:00
parent 3d6d9b2a91
commit 98bb230817
1 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,9 @@ class TimelineStatusTableViewCell: BaseStatusTableViewCell {
verticalStackToActionsContainerConstraint.isActive = false
} else {
actionsContainerView.isHidden = false
actionsContainerHeightConstraint.isActive = true
// sometimes this constraint is nil for reasons i can't discern
// not re-activating in that case doesn't seem to make a difference
actionsContainerHeightConstraint?.isActive = true
verticalStackToSuperviewConstraint.isActive = false
verticalStackToActionsContainerConstraint.isActive = true
}