Issue: After sending a message successfully, calling the remote messages method doesn’t retrieve the recently sent message.
-
If you call the remote messages 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 Chat Server when retrieving remote messages.
-
After successfully sending a message, push it to the local message rendering data.
-
If the message is still not retrieved after a delayed API call, verify if it is persisted. When Register a custom message, the
isPersistedfield indicates whether the message is stored. Only persisted messages are saved in the history record.