Update default power levels for room and encrypt rooms on creation

This commit is contained in:
Timo
2025-04-11 00:17:59 +02:00
parent d5407a4fde
commit 2749ae41f6

View File

@@ -251,7 +251,8 @@ export async function createRoom(
"m.room.encryption": 100,
"m.room.name": 50,
"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,
"org.matrix.msc3401.call.member": 0,
},
@@ -259,6 +260,15 @@ export async function createRoom(
[client.getUserId()!]: 100,
},
},
initial_state: [
{
type: "m.room.encryption",
state_key: "",
content: {
algorithm: "m.megolm.v1.aes-sha2",
},
},
],
});
// Wait for the room to arrive