diff --git a/Tusker/API/ToggleFollowHashtagService.swift b/Tusker/API/ToggleFollowHashtagService.swift index e3b8c00fb..38afa0897 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() }