From 8b0c2f80b69d879dbc6adaf3ecce7ceda63d29d2 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Mon, 22 Jul 2024 21:28:42 -0700 Subject: [PATCH] Fix preserving conversation expand all not working for ancestors Closes #516 --- .../Conversation/ConversationCollectionViewController.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tusker/Screens/Conversation/ConversationCollectionViewController.swift b/Tusker/Screens/Conversation/ConversationCollectionViewController.swift index 1712e98499..8f16309e5e 100644 --- a/Tusker/Screens/Conversation/ConversationCollectionViewController.swift +++ b/Tusker/Screens/Conversation/ConversationCollectionViewController.swift @@ -364,7 +364,9 @@ extension ConversationCollectionViewController: UICollectionViewDelegate { conv.showStatusesAutomatically = showStatusesAutomatically show(conv) } 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: _): let indexPathBeforeExpandThread = IndexPath(row: indexPath.row - 1, section: indexPath.section)