Browse Source

fix opening profile

B. Petersen 5 years ago
parent
commit
e3b8d43182
1 changed files with 2 additions and 2 deletions
  1. 2 2
      deltachat-ios/Controller/ChatViewController.swift

+ 2 - 2
deltachat-ios/Controller/ChatViewController.swift

@@ -502,7 +502,7 @@ class ChatViewController: MessagesViewController {
     }
 
     @objc private func chatProfilePressed() {
-        if chatId == DC_CHAT_ID_DEADDROP {
+        if chatId != DC_CHAT_ID_DEADDROP {
             showChatDetail(chatId: chatId)
         }
     }
@@ -639,7 +639,7 @@ class ChatViewController: MessagesViewController {
         }
     }
 
-    //  MARK: - coordinator
+    // MARK: - coordinator
     func navigateBack() {
         if let navigationController = self.parent as? UINavigationController {
             navigationController.popViewController(animated: true)