markP2PMessageRead static method

Future<NIMResult<void>> markP2PMessageRead({
  1. required String sessionId,
  2. required NIMMessage message,
})

设置单聊中消息为已读状态

Implementation

static Future<NIMResult<void>> markP2PMessageRead(
    {required String sessionId, required NIMMessage message}) {
  return NimCore.instance.messageService
      .sendMessageReceipt(sessionId: sessionId, message: message);
}