set Check Duplicate Message
Set the RCmessage deduplication switch
When the sender sends a message under poor network conditions, the message reaches the server but the sender does not receive the server's ack, causing the sender to assume the message failed to send. In this case, both the server and the receiver will receive the first message. The sender then resends the message, which reaches the server again, resulting in two messages on the server (with the same content but different messageUids). The receiver will receive two messages with the same content but different messageUids. The SDK will deduplicate the second message with the same content to ensure that only one message is received by both the sender and the receiver for the resent message.
When the message volume is low, message deduplication has little impact. However, when there is a large number of local messages, deduplication can cause performance issues. If the app has a large number of local messages and experiences message reception lag, it is recommended to turn off deduplication.
Since
5.3.4
Parameters
Whether to use the RCmessage deduplication mechanism. The default value is true.