To get unread messages count I use ZDCChat.instance()?.unreadMessagesCount
1. problem when call unreadMessagesCount returning 0 unless I call
ZDCChatAPI.instance().addObserver(self, forChatLogEvents: #selector(chatEvent(_:)))
then it returns correct value
2. When I read all messages and unload app, unreadMessagesCount returning old values. should be 0, because I read it before.
I have 4 messages from agent. I open chat and read them.
Call to unreadMessagesCount returns 0.
Unload app from app center and open again, and call same unreadMessagesCount, and returns 4.
Send some message to agent, then unreadMessagesCount always 0 as expected.
I guess mark all as read not working until I send some text.
Please sign in to leave a comment.