batch Insert Message
Batch inserts received messages (these messages are only inserted into the local database and are not actually sent to the server or the other party). The following attributes of the Message will be stored, while other attributes will be discarded: - conversationType: The type of conversation - targetId: The conversation ID - messageDirection: The direction of the message - senderUserId: The sender's ID - receivedStatus: The received status; if the message direction is inbound and message.getReceivedStatus().setRead() has not been called, the message is unread - sentStatus: The sent status - content: The content of the message - sentTime: The Unix timestamp of when the message was sent, in milliseconds, which affects message sorting
This method does not support the chatroom conversation type. A maximum of 500 messages can be processed per batch; exceeding this limit will return RC_INVALID_PARAMETER_MESSAGE_LIST. The unread count of messages will be accumulated into the conversation's unread count.
Parameters
The list of messages to be processed in batch
The callback