Possibility to encrypt new rooms

Change-Id: Ie415a0f8ecec646510ac8f2f0adca58064e30da5
This commit is contained in:
Michael Albert
2020-05-25 09:32:47 +02:00
parent ab649fbf70
commit 07862591fd
4 changed files with 11 additions and 0 deletions

View File

@@ -56,6 +56,14 @@ const resourceMap = {
Array.isArray(data.invitees) && data.invitees.length > 0
? data.invitees
: undefined,
initial_state: data.encrypt ? [{
type: 'm.room.encryption',
state_key: '',
content: {
algorithm: 'm.megolm.v1.aes-sha2',
}
}] : undefined,
,
},
method: "POST",
})