Skip to content

Commit

Permalink
Attempt to define a valid event (#1045)
Browse files Browse the repository at this point in the history
* Attempt to define a valid event

Resolves #1044.

Well, maybe.

* Changelog

* link to /rooms, thanks Travis

Co-authored-by: Travis Ralston <travpc@gmail.com>

Co-authored-by: Travis Ralston <travpc@gmail.com>
  • Loading branch information
DMRobertson and turt2live authored May 10, 2022
1 parent 61e7a73 commit 9ede29a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelogs/server_server/newsfragments/1045.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Expand a little on what it means for a PDU to be valid when discussing checks on PDUs.
4 changes: 3 additions & 1 deletion content/server-server-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,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](/rooms).
2. Passes signature checks, otherwise it is dropped.
3. Passes hash checks, otherwise it is redacted before being processed
further.
Expand Down

0 comments on commit 9ede29a

Please sign in to comment.