Fix subtle erroneous event casts
Sometimes, the previous code would static_cast an EncryptedEvent to a RoomMessageEvent. This was mostly unnoticed, since the types are similar enough.
Sometimes, the previous code would static_cast an EncryptedEvent to a RoomMessageEvent. This was mostly unnoticed, since the types are similar enough.