markC2CMessageAsRead

Introduction

Mark a specific c2c conversation as read.

The target user will receive the callback of onRecvC2CReadReceipt.

Parameter details

Parameter name Parameter type Required Description
userID string yes The target user ID associated with this conversation.

Returned template

V2TimCallback

{
    code : number
    desc : string
}

Return value details

name type description
code number Request result: Error codes. 0 means success.
desc string The description of the error. It will be empty if success.

Code example

import { TencentImSDKPlugin } from 'react-native-tim-js';


const markC2CMessageAsReadRes = await TencentImSDKPlugin.v2TIMManager
    .getMessageManager()
    .markC2CMessageAsRead('userID');
if (markC2CMessageAsReadRes.code === 0) {

}

results matching ""

    No results matching ""