Fix crash if preferences change while there are cells that don't have statuses

This commit is contained in:
Shadowfacts 2023-01-13 15:26:26 -05:00
parent b4384d11f5
commit 019f7d6d6a
1 changed files with 1 additions and 0 deletions

View File

@ -668,6 +668,7 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti
@objc private func preferencesChanged() {
guard let mastodonController,
let statusID,
let status = mastodonController.persistentContainer.status(for: statusID) else {
return
}