leancloud / ChatKit-OC

此项目已经废弃,以后不再维护。我们推出了基于 Swift SDK 的 Chat Demo。
https://github.com/leancloud/swift-sdk-demo
MIT License
2.12k stars 461 forks source link

【bug 进入conversation崩溃,设置conversationInvalidedHandler 仍然无效 #333

Closed ramboli1986 closed 7 years ago

ramboli1986 commented 7 years ago

Base Info for this issue

进入到conversation controller经常会crash在 - (void)notJoinedHandler:(AVIMConversation )conversation error:(NSError )aError 函数中。

使用下面方法设置invalidHandler ,仍然显示handler == nil LCChatKit.sharedInstance().conversationInvalidedHandler = { (conversationId, controller, administrator, error) in

        controller?.navigationController?.popViewController(animated: true)
        SVProgressHUD.showError(withStatus: "网络不稳定,稍后重试")
        SVProgressHUD.dismiss(withDelay: 1)

    }
  1. ChatKit Version:0.10.1
  2. App-ID: XX
  3. Language:Objective-C
  4. iOS System Version:iOS10
  5. Prototype(是否是真机):YES
  6. Issue Type:Crash、Bug

1. How to repeat the problem.

2. Please help me in this way.

3. Here is a Demo.

4. Here is my Debug log

class name: -[LCCKConversationService fetchConversationWithPeerId:callback:] ------line: 123 ----reason: You cannot