Whenever the user sends a new message, It first makes an API call using CometChat.sendMessage and when comes in onSuccess it gets displayed on the screen.
However, this gives a slow feeling to the app. Is there any way to show the sent messages before the sendMessage’s onSuccess?
Also, some time it didn’t show chat message and the receiver received it. It showed it later