소스 검색

fix DcChat initialization in ShareViewController after rebasing master

cyberta 5 년 전
부모
커밋
acd4fe9f34
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      DcShare/ShareViewController.swift

+ 1 - 1
DcShare/ShareViewController.swift

@@ -121,7 +121,7 @@ class ShareViewController: SLComposeServiceViewController {
 extension ShareViewController: ChatListDelegate {
     func onChatSelected(chatId: Int) {
         selectedChatId = chatId
-        selectedChat = DcChat(id: chatId)
+        selectedChat = dcContext.getChat(chatId: chatId)
         reloadConfigurationItems()
         popConfigurationViewController()
     }