Fix preserving conversation expand all not working for ancestors

Closes #516
This commit is contained in:
Shadowfacts 2024-07-22 21:28:42 -07:00
parent 42423f36db
commit 8b0c2f80b6
1 changed files with 3 additions and 1 deletions

View File

@ -364,7 +364,9 @@ extension ConversationCollectionViewController: UICollectionViewDelegate {
conv.showStatusesAutomatically = showStatusesAutomatically conv.showStatusesAutomatically = showStatusesAutomatically
show(conv) show(conv)
} else { } else {
selected(status: id, state: state.copy()) let conv = ConversationViewController(for: id, state: state.copy(), mastodonController: mastodonController)
conv.showStatusesAutomatically = showStatusesAutomatically
show(conv)
} }
case .expandThread(childThreads: let childThreads, inline: _): case .expandThread(childThreads: let childThreads, inline: _):
let indexPathBeforeExpandThread = IndexPath(row: indexPath.row - 1, section: indexPath.section) let indexPathBeforeExpandThread = IndexPath(row: indexPath.row - 1, section: indexPath.section)