Let users edit an existing message. Add an edit button next to the delete button that, when clicked, will take the message and put it back in the message input at the top.
Once user edits the message and presses the return key again, the message text in the list should be updated.