revert example which was corect first time; fix rst
This commit is contained in:
parent
2c0b45fd14
commit
db302b66ca
2 changed files with 9 additions and 10 deletions
|
@ -51,17 +51,16 @@ allOf:
|
||||||
The contents of the messages to be sent. These are arranged in
|
The contents of the messages to be sent. These are arranged in
|
||||||
a map of user IDs to a map of device IDs to message bodies.
|
a map of user IDs to a map of device IDs to message bodies.
|
||||||
The device ID may also be *, meaning all known devices for the user.
|
The device ID may also be *, meaning all known devices for the user.
|
||||||
example: |-
|
example: {
|
||||||
{
|
"alice@example.org": {
|
||||||
"alice@example.org": {
|
"IWHQUZUIAH": {
|
||||||
"IWHQUZUIAH": {
|
"algorithm": "m.megolm.v1.aes-sha2",
|
||||||
"algorithm": "m.megolm.v1.aes-sha2",
|
"room_id": "!Cuyf34gef24t:localhost",
|
||||||
"room_id": "!Cuyf34gef24t:localhost",
|
"session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ",
|
||||||
"session_id": "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ",
|
"session_key": "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8LlfJL7qNBEY..."
|
||||||
"session_key": "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8LlfJL7qNBEY..."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
required:
|
required:
|
||||||
- sender
|
- sender
|
||||||
- type
|
- type
|
||||||
|
|
|
@ -1018,7 +1018,7 @@ The server API for send-to-device messaging is based on the following
|
||||||
EDU. There are no PDUs or Federation Queries involved.
|
EDU. There are no PDUs or Federation Queries involved.
|
||||||
|
|
||||||
Each send-to-device message should be sent to the destination server using
|
Each send-to-device message should be sent to the destination server using
|
||||||
the following EDU::
|
the following EDU:
|
||||||
|
|
||||||
{{definition_ss_event_schemas_m_direct_to_device}}
|
{{definition_ss_event_schemas_m_direct_to_device}}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue