make rooms encrypted

This commit is contained in:
Timo
2025-04-04 17:21:44 +02:00
parent 299a1ade4e
commit 76dda771f6
3 changed files with 14 additions and 5 deletions

View File

@@ -100,7 +100,7 @@
"livekit-client": "2.9.1",
"lodash-es": "^4.17.21",
"loglevel": "^1.9.1",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#c34ac1ae24b8c3282904c8e2b3e9ea07e58d8790",
"matrix-js-sdk": "github:matrix-org/matrix-js-sdk#4fef77d164b8ea768970a3747f5a9a5f38e35065",
"matrix-widget-api": "1.11.0",
"normalize.css": "^8.0.1",
"observable-hooks": "^4.2.3",

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

View File

@@ -6922,7 +6922,7 @@ __metadata:
livekit-client: "npm:2.9.1"
lodash-es: "npm:^4.17.21"
loglevel: "npm:^1.9.1"
matrix-js-sdk: "github:matrix-org/matrix-js-sdk#c34ac1ae24b8c3282904c8e2b3e9ea07e58d8790"
matrix-js-sdk: "github:matrix-org/matrix-js-sdk#4fef77d164b8ea768970a3747f5a9a5f38e35065"
matrix-widget-api: "npm:1.11.0"
normalize.css: "npm:^8.0.1"
observable-hooks: "npm:^4.2.3"
@@ -9513,9 +9513,9 @@ __metadata:
languageName: node
linkType: hard
"matrix-js-sdk@github:matrix-org/matrix-js-sdk#c34ac1ae24b8c3282904c8e2b3e9ea07e58d8790":
"matrix-js-sdk@github:matrix-org/matrix-js-sdk#4fef77d164b8ea768970a3747f5a9a5f38e35065":
version: 37.2.0
resolution: "matrix-js-sdk@https://github.com/matrix-org/matrix-js-sdk.git#commit=c34ac1ae24b8c3282904c8e2b3e9ea07e58d8790"
resolution: "matrix-js-sdk@https://github.com/matrix-org/matrix-js-sdk.git#commit=4fef77d164b8ea768970a3747f5a9a5f38e35065"
dependencies:
"@babel/runtime": "npm:^7.12.5"
"@matrix-org/matrix-sdk-crypto-wasm": "npm:^14.0.1"
@@ -9532,7 +9532,7 @@ __metadata:
sdp-transform: "npm:^2.14.1"
unhomoglyph: "npm:^1.0.6"
uuid: "npm:11"
checksum: 10c0/50b7e8ad90241d8fa5a5df83419394320f5b7cfb7c0ab54cb52826d10b4c5a1065d1e79c2c10e614cd39a0e5e19ec789387ca3c869d200fa738b02e15951b43e
checksum: 10c0/4601841164218dd25c2656909f3a9c2843dc5cd019a74241b6d24a18f91b28b9b5b794ac0e2b9d989aa03a06452b43c1360807dc8f87aeef14fa7e69fea21a05
languageName: node
linkType: hard