Explicitly say how appservices should detect state events

Fixes https://github.com/matrix-org/matrix-doc/issues/1014
This commit is contained in:
Travis Ralston 2018-08-17 13:38:38 -06:00
parent f5dc0eaed2
commit 5b5b4cfbed

View file

@ -32,6 +32,10 @@ paths:
description: |-
This API is called by the homeserver when it wants to push an event
(or batch of events) to the application service.
The application service should take care to ensure that it handles
state events by the presence of a ``state_key``, not by the event
type.
operationId: sendTransaction
parameters:
- in: path
@ -44,7 +48,7 @@ paths:
x-example: "35"
- in: body
name: body
description: A list of events
description: A list of events.
schema:
type: object
example: {