Fix crash if preferences change while there are cells that don't have statuses
This commit is contained in:
parent
b4384d11f5
commit
019f7d6d6a
|
@ -668,6 +668,7 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti
|
||||||
|
|
||||||
@objc private func preferencesChanged() {
|
@objc private func preferencesChanged() {
|
||||||
guard let mastodonController,
|
guard let mastodonController,
|
||||||
|
let statusID,
|
||||||
let status = mastodonController.persistentContainer.status(for: statusID) else {
|
let status = mastodonController.persistentContainer.status(for: statusID) else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue