From 8a446fa6dff3264477b5b1b8793d52831e2f1e6b Mon Sep 17 00:00:00 2001 From: Marcus Medom Ryding Date: Wed, 15 Nov 2017 19:24:46 +0100 Subject: [PATCH] Modify event auth rules not to rely on depth Signed-off-by: Marcus Medom Ryding --- specification/server_server_api.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specification/server_server_api.rst b/specification/server_server_api.rst index 1ca2f39b..3d81f2ba 100644 --- a/specification/server_server_api.rst +++ b/specification/server_server_api.rst @@ -504,15 +504,15 @@ the state of the room. state of the room. For example, a redacted ``join`` event will still result in the user being considered joined. -1. If type is ``m.room.create``, allow if and only if has depth 0 and it has no +1. If type is ``m.room.create``, allow if and only if it has no previous events - *i.e.* it is the first event in the room. #. If type is ``m.room.member``: a. If ``membership`` is ``join``: - i. If the previous event in the room graph is an ``m.room.create``, the - depth is 1 and the ``state_key`` is the creator, allow. + i. If the only previous event is an ``m.room.create`` + and the ``state_key`` is the creator, allow. #. If the ``sender`` does not match ``state_key``, reject.