add missing m.room.encryption properties

pull/1284/head
Valentin Deniaud 6 years ago
parent e5005b2d0f
commit 3a8d13df60

@ -1,6 +1,8 @@
{ {
"content": { "content": {
"algorithm": "m.megolm.v1.aes-sha2" "algorithm": "m.megolm.v1.aes-sha2",
"rotation_period_ms": 604800000,
"rotation_period_msgs": 100
}, },
"event_id": "$WLGTSEFJJKJ:localhost", "event_id": "$WLGTSEFJJKJ:localhost",
"origin_server_ts": 1476648761524, "origin_server_ts": 1476648761524,

@ -10,6 +10,16 @@ properties:
description: |- description: |-
The encryption algorithm to be used to encrypt messages sent in this The encryption algorithm to be used to encrypt messages sent in this
room. For example, ``m.megolm.v1.aes-sha2``. room. For example, ``m.megolm.v1.aes-sha2``.
rotation_period_ms:
type: integer
description: |-
How long the session should be used before changing it. ``604800000``
(a week) is the recommended default.
rotation_period_msgs:
type: integer
description: |-
How many messages should be sent before changing the session. ``100`` is the
recommended default.
required: required:
- algorithm - algorithm
type: object type: object

Loading…
Cancel
Save