Steps to reproduce:
- Enter message in the input box
- Hit enter a few times quickly
- See message has been sent multiple times
Also it seems the message appears in the messages list only after a successful network request. So there is a visible delay (you hit enter and see message remains in the message input for a while).
Expected behavior:
- Message appears in the messages list immediately and only once
- Actual request to send message happens asynchronously, so that the message is sent after it appears in the message list (optimistic approach)
- If there is some error with sending message, the error is shown in the messages list, like in all popular messengers
Steps to reproduce:
Also it seems the message appears in the messages list only after a successful network request. So there is a visible delay (you hit enter and see message remains in the message input for a while).
Expected behavior: