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 %}} {{% boxes/note %}}
Application services can only register interest in *local* users (i.e., users For the `users` namespace, application services can only register interest in
whose IDs end with the `server_name` of the local homeserver). Events affecting *local* users (i.e., users whose IDs end with the `server_name` of the local
users on other homeservers are not sent to an application service, even if the homeserver). Events affecting users on other homeservers are not sent to an application
user happens to match the one of the `users` namespaces (unless, of course, the service, even if the user happens to match the one of the `users` namespaces (unless,
event affects a room that the application service is interested in for another of course, the event affects a room that the application service is interested in
room - for example, because there is another user in the room that the for another room - for example, because there is another user in the room that the
application service is interested in). 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/note %}}
{{% boxes/warning %}} {{% boxes/warning %}}

View file

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