Wednesday, September 15, 2021
1 change · master
Enhancements to existing features
Users can now continue writing immediately after sending a message while it is queued and sent in the background. This reduces duplicate or lost messages when the server is slow and gives users a way to retry messages that fail to send.
Original PR description
The current implementation rely on a RPC response to clear the composer and allow the user to write a new message. This introduce multiple issue when the server is slow (message lost or send twice). It also block the composer while a message is being sent. This PR introduce a message queue that will temporary store the user message and send them. It free the composer directly and send the message in the background. It also improve the error handling and allow the user to retry to send message in error. task-2390637