浏览代码

don't show chat list shortly if moving from a QR-Code-Scan or notification to a chat

cyberta 4 年之前
父节点
当前提交
35e2d7f251
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      deltachat-ios/AppDelegate.swift
  2. 1 1
      deltachat-ios/Controller/QrPageController.swift

+ 1 - 1
deltachat-ios/AppDelegate.swift

@@ -431,7 +431,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
             let userInfo = response.notification.request.content.userInfo
              if let chatId = userInfo["chat_id"] as? Int,
                  let msgId = userInfo["message_id"] as? Int {
-                 appCoordinator.showChat(chatId: chatId, msgId: msgId, clearViewControllerStack: true)
+                 appCoordinator.showChat(chatId: chatId, msgId: msgId, animated: false, clearViewControllerStack: true)
              }
         }
 

+ 1 - 1
deltachat-ios/Controller/QrPageController.swift

@@ -119,7 +119,7 @@ class QrPageController: UIPageViewController, ProgressAlertHandler {
 
     private func showChat(chatId: Int) {
         if let appDelegate = UIApplication.shared.delegate as? AppDelegate {
-            appDelegate.appCoordinator.showChat(chatId: chatId, clearViewControllerStack: true)
+            appDelegate.appCoordinator.showChat(chatId: chatId, animated: false, clearViewControllerStack: true)
         }
     }
 }