Skip to content

Commit 16ce793

Browse files
committed
Update default power levels for room and encrypt rooms on creation
1 parent 1702b15 commit 16ce793

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/utils/matrix.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,24 @@ export async function createRoom(
251251
"m.room.encryption": 100,
252252
"m.room.name": 50,
253253
"m.room.message": 0,
254-
"m.room.encrypted": 50,
254+
// revert this once we do not rely on room messages for perSenderKeys anymore
255+
"m.room.encrypted": 0,
255256
"m.sticker": 50,
256257
"org.matrix.msc3401.call.member": 0,
257258
},
258259
users: {
259260
[client.getUserId()!]: 100,
260261
},
261262
},
263+
initial_state: [
264+
{
265+
type: "m.room.encryption",
266+
state_key: "",
267+
content: {
268+
algorithm: "m.megolm.v1.aes-sha2",
269+
},
270+
},
271+
],
262272
});
263273

264274
// Wait for the room to arrive

0 commit comments

Comments
 (0)