mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 13:04:10 +01:00
Clarify that appservices can only watch local users
Spec for MSC3905
This commit is contained in:
parent
b71153608b
commit
d0442ec97b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue