Skip to content

Commit 01acbfd

Browse files
committed
make rooms encrypted
1 parent de85aa2 commit 01acbfd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/utils/matrix.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,15 @@ export async function createRoom(
259259
[client.getUserId()!]: 100,
260260
},
261261
},
262+
initial_state: [
263+
{
264+
type: "m.room.encryption",
265+
state_key: "",
266+
content: {
267+
algorithm: "m.megolm.v1.aes-sha2",
268+
},
269+
},
270+
],
262271
});
263272

264273
// Wait for the room to arrive

0 commit comments

Comments
 (0)