From 07862591fdb2e0e4547727af0b2382d7fd95ccec Mon Sep 17 00:00:00 2001 From: Michael Albert Date: Mon, 25 May 2020 09:32:47 +0200 Subject: [PATCH] Possibility to encrypt new rooms Change-Id: Ie415a0f8ecec646510ac8f2f0adca58064e30da5 --- src/components/rooms.js | 1 + src/i18n/de.js | 1 + src/i18n/en.js | 1 + src/synapse/dataProvider.js | 8 ++++++++ 4 files changed, 11 insertions(+) diff --git a/src/components/rooms.js b/src/components/rooms.js index e872374..65cf338 100644 --- a/src/components/rooms.js +++ b/src/components/rooms.js @@ -116,6 +116,7 @@ export const RoomCreate = props => ( placeholder="#" /> + 0 ? data.invitees : undefined, + initial_state: data.encrypt ? [{ + type: 'm.room.encryption', + state_key: '', + content: { + algorithm: 'm.megolm.v1.aes-sha2', + } + }] : undefined, + , }, method: "POST", })