鸿蒙 IMLib-v1.8.0
    Preparing search index...

    已读回执信息 V5

    // sequenceDiagram start
    title 消息已读 V5
    发送方->> 接收方: 1.发送消息
    发送方->> 接收方: 2.注册已读回执事件监听
    activate 接收方
    接收方-->> 接收方: 3.进入聊天页面遍历所有的消息
    接收方-->> 发送方: 4.发送已读回执V5响应
    deactivate 接收方
    activate 发送方
    发送方->> 发送方: 5.将聊天页面对应消息更新已读状态
    deactivate 发送方
    // sequenceDiagram end

    群聊具体流程描述
    1. 发送方发送消息发送方 App/IMKit 发送任何的记未读消息比如文本图片等
    2. 发送方注册已读回执时间监听器发送方 App/IMKit 调用 IMEngine.addMessageReadReceiptV5Listener()
    3. 接收方进入聊天页面遍历所有的消息
    4. 接收方发送群聊已读回执响应接收方 App/IMKit 进入聊天页面内对要回执的消息调用 IMEngine.sendReadReceiptResponseV5() 发送已读回执响应证明接收方这些消息已读过
    5. 发送方接收群聊已读回执响应发送方 SDK 接收到已读响应时将本地消息的 respondUserIdList 更新然后触发 MessageReadReceiptV5Listener.onMessageReceiptResponse()
    6. 发送方将聊天页面对应消息更新已读状态发送方 App/IMKit 在对应的聊天页面找到对应的消息更新对应的 UI

    1.5.0

    使用 https://sequencediagram.org/ 打开时序图

    Index

    Constructors

    Properties

    conIdentifier: ConversationIdentifier

    会话信息 从 1.6.0 版本起,消息已读 V5 返回信息中新增会话信息。

    1.6.0

    messageUid: string

    消息 UID

    messageTime: number

    消息发送时间

    readCount: number

    已读回执成员数

    unreadCount: number

    未读回执成员数

    totalCount: number

    已读 + 未读 成员总数