Possibility to encrypt new rooms
Change-Id: Ie415a0f8ecec646510ac8f2f0adca58064e30da5
This commit is contained in:
@@ -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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user