소스 검색

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)
                 }
             }