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 check #1140948

00:00:36

 
  Test
passed flatpak #1140949
flatpak

00:43:30