From 3dfa643b8b0353b76bc09a7beee69f94fdae60df Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 20 Feb 2018 20:18:33 +0000 Subject: [PATCH] Fix membership state names It's called 'join', not 'joined'. --- specification/server_server_api.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/server_server_api.rst b/specification/server_server_api.rst index 43874321..e9885311 100644 --- a/specification/server_server_api.rst +++ b/specification/server_server_api.rst @@ -520,7 +520,7 @@ the state of the room. #. If ``membership`` is ``invite``: - i. If the ``sender``'s current membership state is not ``joined``, reject. + i. If the ``sender``'s current membership state is not ``join``, reject. #. If *target user*'s current membership state is ``join`` or ``ban``, reject. @@ -535,7 +535,7 @@ the state of the room. i. If the ``sender`` matches ``state_key``, allow if and only if that user's current membership state is ``invite`` or ``join``. - #. If the ``sender``'s current membership state is not ``joined``, reject. + #. If the ``sender``'s current membership state is not ``join``, reject. #. If the *target user*'s current membership state is ``ban``, and the ``sender``'s power level is less than the *ban level*, reject. @@ -548,7 +548,7 @@ the state of the room. #. If ``membership`` is ``ban``: - i. If the ``sender``'s current membership state is not ``joined``, reject. + i. If the ``sender``'s current membership state is not ``join``, reject. #. If the ``sender``'s power level is greater than or equal to the *ban level*, and the *target user*'s power level is less than the @@ -558,7 +558,7 @@ the state of the room. #. Otherwise, the membership is unknown. Reject. -#. If the ``sender``'s current membership state is not ``joined``, reject. +#. If the ``sender``'s current membership state is not ``join``, reject. #. If the event type's *required power level* is greater than the ``sender``'s power level, reject.