瀏覽代碼

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

cyberta 4 年之前
父節點
當前提交
0708b71229
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)
                 }
             }