customer-android-kotlin

//core/com.kustomer.core.providers/KusChatProvider/markRead

markRead

[androidJvm]
abstract suspend fun markRead(conversationId: String, messageIds: List<String> = emptyList(), satisfactionId: String = "")


Deprecated

Use markSessionAsRead(conversationId) instead. The messageIds and satisfactionId parameters are ignored - all unread messages and CSAT (if it exists) will be marked as read.

Replace with

markSessionAsRead(conversationId)

Marks a conversation as read for current timestamp. Any message received for this conversation after this will be treated as unread, until marked read again This function should be called, whenever the user closes the chat view for a conversation

Note: This method now delegates to markSessionAsRead internally. The messageIds and satisfactionId parameters are ignored - all unread messages and CSAT (if it exists) will be marked as read.

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

Parameters

androidJvm

   
conversationId which should be marked as read
messageIds ignored - all unread messages will be marked as read
satisfactionId ignored - CSAT will be marked as read if it exists