diff --git a/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift b/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift index b02b475d..30b090c0 100644 --- a/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift +++ b/Tusker/Views/Status/TimelineStatusCollectionViewCell.swift @@ -762,7 +762,10 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti return UIContextMenuConfiguration { ConversationViewController(for: self.statusID, state: self.statusState.copy(), mastodonController: self.mastodonController) } actionProvider: { _ in - UIMenu(children: self.delegate!.actionsForStatus(status, source: .view(self))) + guard let delegate = self.delegate else { + return nil + } + return UIMenu(children: delegate.actionsForStatus(status, source: .view(self))) } }