Attempt to define a valid event

Resolves #1044.

Well, maybe.
This commit is contained in:
David Robertson 2022-05-04 15:02:20 +01:00
parent a164302164
commit 7c5e991f78
No known key found for this signature in database
GPG key ID: 903ECE108A39DEDD

View file

@ -355,7 +355,9 @@ specification](/rooms).
Whenever a server receives an event from a remote server, the receiving
server must ensure that the event:
1. Is a valid event, otherwise it is dropped.
1. Is a valid event, otherwise it is dropped. For an event to be valid, it
must contain a `room_id`, and it must comply with the event format of
that room version.
2. Passes signature checks, otherwise it is dropped.
3. Passes hash checks, otherwise it is redacted before being processed
further.