mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Dispatch to main after verifying network connection in share ext
This commit is contained in:
parent
52c73cf05e
commit
25ae8622ba
1 changed files with 4 additions and 2 deletions
|
|
@ -84,8 +84,10 @@ final class ShareExtensionViewModel: ObservableObject {
|
|||
let hasConnectionAndValidToken = await services.dataService.hasConnectionAndValidToken()
|
||||
|
||||
if !hasConnectionAndValidToken {
|
||||
debugText = "saveArticleError: No connection or invalid token."
|
||||
status = .failed(error: .unknown(description: ""))
|
||||
DispatchQueue.main.async {
|
||||
self.debugText = "saveArticleError: No connection or invalid token."
|
||||
self.status = .failed(error: .unknown(description: ""))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue