Maybe fix race condition when account is loaded as profile statuses VC is dealloc'd

This commit is contained in:
Shadowfacts 2023-01-01 15:21:18 -05:00
parent 9dd966f639
commit 5898da3234
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class ProfileStatusesViewController: UIViewController, TimelineLikeCollectionVie
.sink { [unowned self] id in
switch state {
case .unloaded:
Task {
Task { [self] in
await self.load()
}
case .loaded, .setupInitialSnapshot: