mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Don’t assertionFailure() when tapping on non-status cells (#963)
This commit is contained in:
parent
0c224f47df
commit
4dbf8d35ec
@ -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 {
|
||||
|
@ -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 {
|
||||
|
@ -24,7 +24,6 @@ extension ThreadViewController: DataSourceProvider {
|
||||
case .thread(let thread):
|
||||
return .status(record: thread.record)
|
||||
default:
|
||||
assertionFailure()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user