From 98bb2308179502d0af4284b697eb6221189ed12c Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 9 Apr 2022 15:05:49 -0400 Subject: [PATCH] Fix crash when disabling hide status actions in timeline --- Tusker/Views/Status/TimelineStatusTableViewCell.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tusker/Views/Status/TimelineStatusTableViewCell.swift b/Tusker/Views/Status/TimelineStatusTableViewCell.swift index af78f8c0a8..129f659d78 100644 --- a/Tusker/Views/Status/TimelineStatusTableViewCell.swift +++ b/Tusker/Views/Status/TimelineStatusTableViewCell.swift @@ -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 }