|
|
@ -232,6 +232,18 @@ reserved for events defined in the Matrix specification - for instance
|
|
|
|
`m.room.message` is the event type for instant messages. Events are
|
|
|
|
`m.room.message` is the event type for instant messages. Events are
|
|
|
|
usually sent in the context of a "Room".
|
|
|
|
usually sent in the context of a "Room".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{% boxes/warning %}}
|
|
|
|
|
|
|
|
Event bodies are considered untrusted data. This means that any application using
|
|
|
|
|
|
|
|
Matrix must validate that the event body is of the expected shape/schema
|
|
|
|
|
|
|
|
before using the contents verbatim.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
**It is not safe to assume that an event body will have all the expected
|
|
|
|
|
|
|
|
fields of the expected types.**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
See [MSC2801](https://github.com/matrix-org/matrix-doc/pull/2801) for more
|
|
|
|
|
|
|
|
detail on why this assumption is unsafe.
|
|
|
|
|
|
|
|
{{% /boxes/warning %}}
|
|
|
|
|
|
|
|
|
|
|
|
### Event Graphs
|
|
|
|
### Event Graphs
|
|
|
|
|
|
|
|
|
|
|
|
Events exchanged in the context of a room are stored in a directed
|
|
|
|
Events exchanged in the context of a room are stored in a directed
|
|
|
|