Don’t assertionFailure() when tapping on non-status cells (#963)

This commit is contained in:
Jed Fox 2023-03-13 06:34:40 -04:00 committed by GitHub
parent 0c224f47df
commit 4dbf8d35ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 1 deletions

View File

@ -522,6 +522,7 @@ extension NotificationTableViewCellDelegate where Self: DataSourceProvider & Aut
Task {
let source = DataSourceItem.Source(tableViewCell: cell, indexPath: nil)
guard let item = await item(from: source) else {
assertionFailure()
return
}
switch item {

View File

@ -681,6 +681,7 @@ extension StatusTableViewCellDelegate where Self: DataSourceProvider & AuthConte
Task {
let source = DataSourceItem.Source(tableViewCell: cell, indexPath: nil)
guard let item = await item(from: source) else {
assertionFailure()
return
}
switch item {

View File

@ -24,7 +24,6 @@ extension ThreadViewController: DataSourceProvider {
case .thread(let thread):
return .status(record: thread.record)
default:
assertionFailure()
return nil
}
}