Fix Recognize Text action accessing view context MO off of main thread

Closes #393
This commit is contained in:
Shadowfacts 2023-05-27 15:26:13 -07:00
parent 52efc8b752
commit d938c555b7
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ class AttachmentRowController: ViewController {
private func recognizeText() {
descriptionMode = .recognizingText
DispatchQueue.global(qos: .userInitiated).async {
self.attachment.getData(features: self.parent.mastodonController.instanceFeatures, skipAllConversion: true) { result in
self.attachment.getData(features: self.parent.mastodonController.instanceFeatures, skipAllConversion: true) { result in
DispatchQueue.main.async {
let data: Data
switch result {
case .success((let d, _)):