matrix-spec/event-schemas/schema/m.direct

24 lines
565 B
Plaintext
Raw Normal View History

2016-10-04 16:07:14 +02:00
{
"type": "object",
"title": "Direct Message Map Event",
"description": "Account Data event used to store which rooms are 'direct chats' for which users.",
"allOf": [{
"$ref": "core-event-schema/event.yaml"
}],
"properties": {
"type": {
"type": "string",
"enum": ["m.direct"]
},
"content": {
"type": "object",
"description": "Object mapping user IDs to lists of room IDs.",
"additionalProperties": {
"title": "User ID",
"type": "array"
}
}
},
"required": ["type", "content"]
}