Apply suggestions from code review

Co-authored-by: Eric Eastwood <madlittlemods@gmail.com>
This commit is contained in:
Richard van der Hoff 2022-11-01 14:25:53 +00:00 committed by GitHub
parent a344dfa20d
commit a959df71c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 10 deletions

View file

@ -81,13 +81,15 @@ namespaces:
```
{{% 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
For the `users` namespace, 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).
For the `rooms` and `aliases` namespaces, all events in a matching room will be sent to the application service.
{{% /boxes/note %}}
{{% boxes/warning %}}

View file

@ -48,15 +48,15 @@ properties:
- $ref: namespace_list.yaml
- description: |-
A list of namespaces defining the room IDs that the application
service is interested in. Events will be sent to the AS if they
take place in a room with an ID matching one of the namespaces.
service is interested in. All events sent in a room with an ID
which matches one of the namespaces will be sent to the AS.
aliases:
allOf:
- $ref: namespace_list.yaml
- description: |-
A list of namespaces defining the room aliases that the application
service is interested in. Events will be sent to the AS if they
take place in a room with an alias matching one of the namespaces.
service is interested in. All events sent in a room with an alias
which matches one of the namespaces will be sent to the AS.
rate_limited:
type: boolean
description: Whether requests from masqueraded users are rate-limited. The sender is excluded.