Ver código fonte

use higher background thread priority for attachment loading while sharing to DC

cyberta 4 anos atrás
pai
commit
0708b71229
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      DcShare/Controller/ShareViewController.swift

+ 1 - 1
DcShare/Controller/ShareViewController.swift

@@ -90,7 +90,7 @@ class ShareViewController: SLComposeServiceViewController {
                 if let chatId = selectedChatId {
                     selectedChat = dcContext.getChat(chatId: chatId)
                 }
-                DispatchQueue.global(qos: .background).async {
+                DispatchQueue.global(qos: .userInitiated).async {
                     self.shareAttachment = ShareAttachment(dcContext: self.dcContext, inputItems: self.extensionContext?.inputItems, delegate: self)
                 }
             }