Capture strong references in ToggleFollowHashtagService retry actions
This commit is contained in:
parent
ac0dedfd3d
commit
d75c2558ca
|
@ -37,7 +37,7 @@ class ToggleFollowHashtagService {
|
||||||
config.systemImageName = "checkmark"
|
config.systemImageName = "checkmark"
|
||||||
config.dismissAutomaticallyAfter = 2
|
config.dismissAutomaticallyAfter = 2
|
||||||
} catch {
|
} 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)
|
toast.dismissToast(animated: true)
|
||||||
await self.toggleFollow()
|
await self.toggleFollow()
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@ class ToggleFollowHashtagService {
|
||||||
config.systemImageName = "checkmark"
|
config.systemImageName = "checkmark"
|
||||||
config.dismissAutomaticallyAfter = 2
|
config.dismissAutomaticallyAfter = 2
|
||||||
} catch {
|
} 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)
|
toast.dismissToast(animated: true)
|
||||||
await self.toggleFollow()
|
await self.toggleFollow()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue