forked from shadowfacts/Tusker
Fix crash if contextMenuConfiguration called on status cell that doesn't have a delegate
Closes #392
This commit is contained in:
parent
822e3f91c4
commit
52efc8b752
|
@ -784,7 +784,8 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti
|
|||
}
|
||||
|
||||
func contextMenuConfiguration() -> UIContextMenuConfiguration? {
|
||||
guard let status = mastodonController.persistentContainer.status(for: statusID) else {
|
||||
guard let mastodonController,
|
||||
let status = mastodonController.persistentContainer.status(for: statusID) else {
|
||||
return nil
|
||||
}
|
||||
return UIContextMenuConfiguration {
|
||||
|
|
Loading…
Reference in New Issue