From df9ce810600db318326d32930b83a7a043e2e16f Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 9 Sep 2023 11:37:25 -0400 Subject: [PATCH] Fix crash when ComposeUIConfig.dismiss called after hosting controller dealloc'd I'm not sure how this can happen (possibly if the user dismissed the compose screen while the status was being posted? but I haven't been able to reproduce that), but guard against it since it's causing crashes --- Tusker/Screens/Compose/ComposeHostingController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tusker/Screens/Compose/ComposeHostingController.swift b/Tusker/Screens/Compose/ComposeHostingController.swift index 6e8e7580..2e7b1a86 100644 --- a/Tusker/Screens/Compose/ComposeHostingController.swift +++ b/Tusker/Screens/Compose/ComposeHostingController.swift @@ -88,7 +88,7 @@ class ComposeHostingController: UIHostingController