Skip to content

[Bug] After entering the message if you hit Enter multiple times in a row, the message gets sent multiple times #42

@andriy-ah

Description

@andriy-ah

Steps to reproduce:

  1. Enter message in the input box
  2. Hit enter a few times quickly
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions