clearConversationUnreadMessageCount abstract method

Future<ZIMConversationUnreadMessageCountClearedResult> clearConversationUnreadMessageCount(
  1. String conversationID,
  2. ZIMConversationType conversationType
)

Available since: 2.1.5 and above.

Description: Used to clear unread for the current user target session.

Use cases: This interface is called when a chat page is entered from a session and the original message readings of the session need to be cleared.

When to call /Trigger: Called when a target needs to be cleared without readings.

Restrictions: Valid after login, invalid after logout.

Impacts on other APIs: Calling this method will trigger a total readings not updated callback ZIMEventHandler.onConversationTotalUnreadMessageCountUpdated, would trigger a session to update callbacks ZIMEventHandler.onConversationChanged.

Related callbacks:ZIMConversationUnreadMessageCountClearedResult.

Related APIs:ZIMEventHandler.onConversationTotalUnreadMessageCountUpdatedZIMEventHandler.onConversationChanged.

conversationID conversationID. conversationType conversation type.

Implementation

Future<ZIMConversationUnreadMessageCountClearedResult>
    clearConversationUnreadMessageCount(
        String conversationID, ZIMConversationType conversationType);