Browse Source

fix DcChat initialization in ShareViewController after rebasing master

cyberta 5 years ago
parent
commit
acd4fe9f34
1 changed files with 1 additions and 1 deletions
  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()
     }