Revert "Fix message replacement and removal in room_history"

This commit breaks edited messages. It looks like it doesn't replace the
correct message after the changes in this commit.
This reverts commit eebb5b5d.
2 jobs for fix_edited_messages in 44 minutes and 7 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Check
passed #1140948
check

00:00:36

 
  Test
passed #1140949
flatpak
flatpak

00:43:30