forked from shadowfacts/Tusker
Maybe fix race condition when account is loaded as profile statuses VC is dealloc'd
This commit is contained in:
parent
9dd966f639
commit
5898da3234
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue