If you click on the edit button and don't actually change the text in the message, the PATCH request to edit the message shouldn't be sent (since it wouldn't change anything).
The implementation for this should keep track of the value before being edited and only send the request if the value, when the confirm edit button is pressed, is different from the original value. The original value should be scrapped afterwords (once a message edit is finalized, the original value shouldn't be remembered).
If you click on the edit button and don't actually change the text in the message, the PATCH request to edit the message shouldn't be sent (since it wouldn't change anything).
The implementation for this should keep track of the value before being edited and only send the request if the value, when the confirm edit button is pressed, is different from the original value. The original value should be scrapped afterwords (once a message edit is finalized, the original value shouldn't be remembered).