wangguolei

fix

@@ -96,15 +96,7 @@ class LoginVC: UIViewController { @@ -96,15 +96,7 @@ class LoginVC: UIViewController {
96 96
97 @IBAction func skipToHome(_ sender : UIButton) { 97 @IBAction func skipToHome(_ sender : UIButton) {
98 98
99 - if HHSDKOptions.default.mMessageOptions.isByPresent {  
100 - if let vc = HHMSDK.default.chatHomeVC() {  
101 - let nav = UINavigationController(rootViewController: vc)  
102 - nav.modalPresentationStyle = .fullScreen  
103 - self.present(nav, animated: true, completion: nil)  
104 - }  
105 - }else{  
106 - HHMSDK.default.skipChatHome()  
107 - } 99 + HHMSDK.default.skipChatHome(skipType: .present, vc: self)
108 } 100 }
109 101
110 override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { 102 override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) {