Can’t find the successfully sent message in history messages?

Issue: After sending a message successfully, calling the history message method doesn’t retrieve the recently sent message.


  1. If you call the history message method within the send message success callback, you won’t retrieve the recently sent message because the sending process is asynchronous. The message may not yet be stored on the server when retrieving history messages.

  2. After successfully sending a message, push it to the local message rendering data.

  3. If the message is still not retrieved after a delayed API call, verify if it is persisted. When registering a custom message, the isPersisted field indicates whether the message is stored. Only persisted messages are saved in the history record.