From d56386a636356d219aa9c9c028c31d6c72cfc821 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 10 Mar 2023 11:24:10 +0100 Subject: [PATCH] events: Add link to definition of m.room.encryption recommended defaults --- crates/ruma-common/src/events/room/encryption.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ruma-common/src/events/room/encryption.rs b/crates/ruma-common/src/events/room/encryption.rs index e9635800..2566c9fb 100644 --- a/crates/ruma-common/src/events/room/encryption.rs +++ b/crates/ruma-common/src/events/room/encryption.rs @@ -45,6 +45,7 @@ impl RoomEncryptionEventContent { /// Note that changing the values of the fields is not a breaking change and you shouldn't rely /// on those specific values. pub fn with_recommended_defaults() -> Self { + // Defaults defined at Self { algorithm: EventEncryptionAlgorithm::MegolmV1AesSha2, rotation_period_ms: Some(uint!(604_800_000)),