As shown in this link, if you edit a message after you delete it, the thing edited after it was deleted is said to be "the last version before deletion".
Steps to reproduce:
- Write a message in chat.
- Hit the edit button.
- Delete the message.
- Edit the message and confirm.
- Check history.