customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/markSessionAsRead

markSessionAsRead

[androidJvm]
abstract suspend fun markSessionAsRead(conversationId: String)

Marks all messages and CSATs in a session as read. This ensures all unread counts for the session are reset to 0. This method is simpler than markRead - it only requires a conversationId. The backend handles marking all messages and CSATs, resetting unread counts, and regenerating stats.

Note: This is a suspend function and should be called from Kotlin Coroutines

Parameters

androidJvm

   
conversationId The ID of the conversation to mark as read