已经标记conversation的所有消息为已读,但再次获取conversation时未读消息不为0
1. 在聊天界面根据对方的环信id使用EaseMob.sharedInstance().chatManager.conversationForChatter!得到当前聊天的conversation,在viewDidDisappear时调用conversation.markAllMessagesAsRead标记这个conversation的所有消息为已读,此时的unreadMessageCount显示为0,在这之后保证没有新消息到来
2. 但是在消息列表界面通过loadAllConversationsFromDatabaseWithAppend2Chat取得的对应conversation中unreadMessageCount不为0,这样就造成了从聊天界面返回时未读标记仍然存在,必须再次进入返回,count才为0,请问这个问题应该如何解决?
2. 但是在消息列表界面通过loadAllConversationsFromDatabaseWithAppend2Chat取得的对应conversation中unreadMessageCount不为0,这样就造成了从聊天界面返回时未读标记仍然存在,必须再次进入返回,count才为0,请问这个问题应该如何解决?
没有找到相关结果
已邀请:
2 个回复
[已注销]
louyw - iOS开发,服务器端开发,php,python
_conversation = [[EaseMob sharedInstance].chatManager conversationForChatter:_chatterUserID conversationType:eConversationTypeChat];
[_conversation markAllMessagesAsRead:YES];