This commit is contained in:
Erik Johnston 2018-08-31 10:51:59 +01:00
parent 073ebb051b
commit 3c53e1910d

View file

@ -396,27 +396,27 @@ The rules are as follows:
i. If ``content`` has ``third_party_invite`` key: i. If ``content`` has ``third_party_invite`` key:
#. Reject if *target user* is banned. #. If *target user* is banned, reject.
#. Reject if ``content.third_party_invite`` does not have a #. If ``content.third_party_invite`` does not have a
``signed`` key. ``signed`` key, reject.
#. Reject if ``signed`` does not have ``mxid`` and ``token`` keys. #. If ``signed`` does not have ``mxid`` and ``token`` keys, reject.
#. Reject if ``mxid`` does not match ``state_key`` #. If ``mxid`` does not match ``state_key``, reject.
#. Reject if no ``m.room.third_party_invite`` event in #. If no ``m.room.third_party_invite`` event in current state with
current state with ``state_key`` matching ``token``. ``state_key`` matching ``token``, reject.
#. Reject if ``sender`` does not match ``sender`` of third party #. If ``sender`` does not match ``sender`` of third party invite,
invite. reject.
#. If any signature in ``signed`` matches any public key in third #. If any signature in ``signed`` matches any public key in the
party invite, allow. The public keys are in ``content`` of ``m.room.third_party_invite``, allow. The public keys are in
third party invite under: ``content`` of ``m.room.third_party_invite`` as:
#. A single public key in ``public_key`` field #. A single public key in the ``public_key`` field.
#. A list of public keys in ``public_keys`` field #. A list of public keys in the ``public_keys`` field.
#. Otherwise, reject. #. Otherwise, reject.