有个问题需要请教下,我这里使用即时通讯SDK和ChatKit两个.
因为我的群聊的页面是自己创建的页面,私聊和其他页面都用的chatkit的页面.
因此在群聊页面拔delegate这样指到了自己
self.client = [LCChatKit sharedInstance].client;
self.client.delegate = self;
但是这样当用户这时发起与其他用户的私聊的时候.此时的delegate还是在我之前的自己写的群聊的对象上面.
这样就导致了一个现象:收到消息等chatkit的页面就不会更新了.
`
[[LCChatKit sharedInstance].client createConversationWithName:@"" clientIds:@[user.objectId] attributes:GGPRIVATETYPEATTRDIC options:AVIMConversationOptionUnique temporaryTTL:0 callback:^(AVIMConversation * _Nullable conversation, NSError * _Nullable error) {
LCCKConversationViewController *conversationViewController = [[LCCKConversationViewController alloc] initWithConversationId:conversation.conversationId];
[self.navigationController pushViewController:conversationViewController animated:YES];
}];
针对这样的问题.有没有什么好的建议呢?
-
创建时间
18年8月15日
-
最后回复
18年8月16日
-
2
回复
-
970
浏览
-
1
用户