insert Incoming Message
Inserts a message into the local conversation with the direction set as received.
This message is only inserted into the local conversation and will not be sent to the server or the recipient. The inserted message must be a persisted message, i.e., ISPERSISTED, otherwise the callback RC_INVALID_PARAMETER_MSG_TAG will be triggered.
Since
5.0.0
Parameters
The type of the conversation.
The ID of the conversation. For private conversations, it is the ID of the other party; for group conversations, it is the group ID; for discussion group conversations, it is the ID of the discussion group.
The ID of the sender.
The received status Message.ReceivedStatus.
The content of the message, such as TextMessage, ImageMessage, etc.
The callback to obtain the message sending entity.
Inserts a message into the local conversation with the direction set as received.
This message is only inserted into the local conversation and will not be actually sent to the server or the other party. The inserted message must be a persisted message, i.e., ISPERSISTED, otherwise, the callback RC_INVALID_PARAMETER_MSG_TAG will be triggered.
Since
5.0.0
Parameters
The type of the conversation.
The ID of the conversation. For example, in a private conversation, it is the ID of the other party; in a group conversation, it is the group ID; in a discussion group conversation, it is the ID of the discussion group.
The ID of the sender.
The received status Message.ReceivedStatus.
The content of the message, such as TextMessage, ImageMessage, etc.
The sent time of the message getSentTime.
The callback to obtain the message sending entity.