From 205b326e4a393eb5f32d72f3154f7ea33096d8ba Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 17 Aug 2018 15:03:30 -0600 Subject: [PATCH] Add a note that application services cannot /sync normally Fixes https://github.com/matrix-org/matrix-doc/issues/1144 --- specification/application_service_api.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/specification/application_service_api.rst b/specification/application_service_api.rst index b4950eac..1f1c8b5b 100644 --- a/specification/application_service_api.rst +++ b/specification/application_service_api.rst @@ -264,6 +264,14 @@ normal users who attempt to create users or aliases *inside* an application service-defined namespace will receive the same ``M_EXCLUSIVE`` error code, but only if the application service has defined the namespace as ``exclusive``. +Using ``/sync`` and ``/events`` ++++++++++++++++++++++++++++++++ + +Application services wishing to use ``/sync`` or ``/events`` from the Client-Server +API MUST do so with a virtual user (provide a ``user_id`` via the query string). It +is expectected that the application service use the transactions pushed to it to +handle events rather than syncing with the user implied by ``sender_localpart``. + ID conventions ~~~~~~~~~~~~~~ .. TODO-spec