Clarify that appservices can only watch local users

Spec for MSC3905
This commit is contained in:
Richard van der Hoff 2022-10-25 21:48:54 +01:00
parent b71153608b
commit d0442ec97b
2 changed files with 11 additions and 1 deletions

View file

@ -80,6 +80,16 @@ namespaces:
rooms: []
```
{{% boxes/note %}}
Application services can only register interest in *local* users (i.e., users
whose IDs end with the `server_name` of the local homeserver). Events affecting
users on other homeservers are not sent to an application service, even if the
user happens to match the one of the `users` namespaces (unless, of course, the
event affects a room that the application service is interested in for another
room - for example, because there is another user in the room that the
application service is interested in).
{{% /boxes/note %}}
{{% boxes/warning %}}
If the homeserver in question has multiple application services, each
`as_token` and `id` MUST be unique per application service as these are

View file

@ -41,7 +41,7 @@ properties:
- description: |-
A list of namespaces defining the user IDs that the application
service is interested in. Events will be sent to the AS if a
user matching one of the namespaces is the target of the event,
local user matching one of the namespaces is the target of the event,
or is a joined member of the room where the event occurred.
rooms:
allOf: