mirror of
https://github.com/vector-im/element-call.git
synced 2026-10-01 22:55:51 +00:00
Update default power levels for room and encrypt rooms on creation
This commit is contained in:
+11
-1
@@ -251,7 +251,8 @@ export async function createRoom(
|
|||||||
"m.room.encryption": 100,
|
"m.room.encryption": 100,
|
||||||
"m.room.name": 50,
|
"m.room.name": 50,
|
||||||
"m.room.message": 0,
|
"m.room.message": 0,
|
||||||
"m.room.encrypted": 50,
|
// revert this once we do not rely on room messages for perSenderKeys anymore
|
||||||
|
"m.room.encrypted": 0,
|
||||||
"m.sticker": 50,
|
"m.sticker": 50,
|
||||||
"org.matrix.msc3401.call.member": 0,
|
"org.matrix.msc3401.call.member": 0,
|
||||||
},
|
},
|
||||||
@@ -259,6 +260,15 @@ export async function createRoom(
|
|||||||
[client.getUserId()!]: 100,
|
[client.getUserId()!]: 100,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
initial_state: [
|
||||||
|
{
|
||||||
|
type: "m.room.encryption",
|
||||||
|
state_key: "",
|
||||||
|
content: {
|
||||||
|
algorithm: "m.megolm.v1.aes-sha2",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
// Wait for the room to arrive
|
// Wait for the room to arrive
|
||||||
|
|||||||
Reference in New Issue
Block a user