Fix crash

This commit is contained in:
Arkadiusz Fal 2023-06-09 17:45:51 +02:00
parent f871c7aaf5
commit 8ffdd4d51f

View File

@ -68,14 +68,13 @@ final class SubscribedChannelsModel: ObservableObject, CacheModel {
return
}
DispatchQueue.main.async { [weak self] in
guard let self else { return }
let request = force ? resource?.load() : resource?.loadIfNeeded()
guard request != nil else { return }
loadCachedChannels(account)
DispatchQueue.main.async { [weak self] in
guard let self else { return }
self.isLoading = true
request?