From d75c2558ca7ea29caa162844900213e15ae0f21c Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 15 Jan 2023 10:33:06 -0500 Subject: [PATCH] Capture strong references in ToggleFollowHashtagService retry actions --- Tusker/API/ToggleFollowHashtagService.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tusker/API/ToggleFollowHashtagService.swift b/Tusker/API/ToggleFollowHashtagService.swift index e3b8c00f..38afa089 100644 --- a/Tusker/API/ToggleFollowHashtagService.swift +++ b/Tusker/API/ToggleFollowHashtagService.swift @@ -37,7 +37,7 @@ class ToggleFollowHashtagService { config.systemImageName = "checkmark" config.dismissAutomaticallyAfter = 2 } catch { - config = ToastConfiguration(from: error, with: "Error Unfollowing Hashtag", in: presenter) { [unowned self] toast in + config = ToastConfiguration(from: error, with: "Error Unfollowing Hashtag", in: presenter) { toast in toast.dismissToast(animated: true) await self.toggleFollow() } @@ -54,7 +54,7 @@ class ToggleFollowHashtagService { config.systemImageName = "checkmark" config.dismissAutomaticallyAfter = 2 } catch { - config = ToastConfiguration(from: error, with: "Error Following Hashtag", in: presenter) { [unowned self] toast in + config = ToastConfiguration(from: error, with: "Error Following Hashtag", in: presenter) { toast in toast.dismissToast(animated: true) await self.toggleFollow() }