Skip to main content

Multi-Device Synchronization of Read Status

Multi-Device Synchronization of Read Status

Call sendSyncReadStatusMessage to synchronize the read status of messages across multiple clients.

const conversation = {
conversationType: RongIMLib.ConversationType.PRIVATE,
targetId: "<Target ID>",
channelId: ""
};
RongIMLib.sendSyncReadStatusMessage(conversation, '1641350006895').then(res => {
if (res.code === 0) {
console.log('Multi-device synchronization successful!')
} else {
console.log(res.code, res.msg)
}
}).catch(error => {
console.log(error)
});
ParameterTypeDescription
conversationIConversationOptionConversation
lastMessageSendTimenumberTimestamp of the last message