瀏覽代碼

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