I'm trying to display the unread message count accurately in the conversation list. However, if I set the unreadCount prop to undefined or null, the count appears as one less than the actual value and sometime it shows a random value. Additionally, when this happens, the username or nickname is not displayed, and instead, the user ID is shown. Could anyone suggest any workarounds or solutions for this?
Uikit internally retrieves a conversation list from the Agora server, which contains unread data. The addConversation method is suitable for creating a new conversation
I'm trying to display the unread message count accurately in the conversation list. However, if I set the unreadCount prop to undefined or null, the count appears as one less than the actual value and sometime it shows a random value. Additionally, when this happens, the username or nickname is not displayed, and instead, the user ID is shown. Could anyone suggest any workarounds or solutions for this?
Below is the code snippet: