I've seen a few errors which can only plausibly be explained by the calculated event id for an event being different from the ID of the event in the database. It should be cheap to check this, so let's do so and raise an exception.
# type: ignore
twisted
black
click
HomeServer.get_datastore()
make_awaitable
defer.succeed
Linearizer
/messages
?from
knock->leave
StreamToken
RoomStreamToken