Closed ramboli1986 closed 7 years ago
实际是两个问题,
退出当前用户并用另外账户重新登录后,进入到conversation controller会crash在 - (void)notJoinedHandler:(AVIMConversation )conversation error:(NSError )aError 函数中的以下这句 [conversationInvalidedHandler(conversationId, self, user, error);]
[conversationInvalidedHandler(conversationId, self, user, error);]
设置了conversationInvalidedHandler, 但在崩溃出仍然显示handler为nil,设置没有起作用。
参考了example的代码, 以下是我的退出登录部分代码
LCChatKit.sharedInstance().removeAllCachedProfiles() LCChatKit.sharedInstance().close(callback: { (success, error) in if success { user.logout } }
以下是设置invalidHandler的代码 , LCChatKit.sharedInstance().conversationInvalidedHandler = { (conversationId, controller, administrator, error) in
controller?.navigationController?.popViewController(animated: true) SVProgressHUD.showError(withStatus: "稍后重试") SVProgressHUD.dismiss(withDelay: 1) }
望指教,谢谢!
Base Info for this issue
实际是两个问题,
退出当前用户并用另外账户重新登录后,进入到conversation controller会crash在 - (void)notJoinedHandler:(AVIMConversation )conversation error:(NSError )aError 函数中的以下这句
[conversationInvalidedHandler(conversationId, self, user, error);]
设置了conversationInvalidedHandler, 但在崩溃出仍然显示handler为nil,设置没有起作用。
参考了example的代码, 以下是我的退出登录部分代码
以下是设置invalidHandler的代码 , LCChatKit.sharedInstance().conversationInvalidedHandler = { (conversationId, controller, administrator, error) in
望指教,谢谢!
1. How to repeat the problem.
2. Please help me in this way.
3. Here is a Demo.
4. Here is my Debug log