make rooms encrypted

This commit is contained in:
Timo committed 2025-04-07 13:20:32 +02:00
1 parent 299a1ade4e
commit 76dda771f6
3 files changed
+14 -5

No files matched your search

+9
View File
@@ -259,6 +259,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