Skip to content
v1
文档/Android SDK/会话

发送已读回执

接口

当前版本未提供独立 cleanConversationUnread 接口。通常在会话页面结合消息已读回执完成未读同步。

kotlin
suspend fun BimChatService.sendMessageReadReceipt(msg: BimMessage, conversation: BimConversation)

代码示例

kotlin
BimImManager.getInstance().chatService.sendMessageReadReceipt(message, conversation)

SDK 会先保存本地已读意图,网络恢复后自动恢复发送;Demo 不需要读取 pending 状态。