Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Always allow call.member events on new rooms #11948

Merged
merged 3 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/createRoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,9 @@ export default async function createRoom(client: MatrixClient, opts: IOpts): Pro
createOpts.power_level_content_override = {
events: {
...DEFAULT_EVENT_POWER_LEVELS,
// Element Call should be disabled by default
[ElementCall.MEMBER_EVENT_TYPE.name]: 100,
// Make sure only admins can enable it
// It should always (including non video rooms) be possible to join a group call.
[ElementCall.MEMBER_EVENT_TYPE.name]: 0,
// Make sure only admins can enable it (DEPRECATED)
[ElementCall.CALL_EVENT_TYPE.name]: 100,
},
};
Expand Down
2 changes: 1 addition & 1 deletion test/createRoom-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ describe("createRoom", () => {
];

expect(callPower).toBe(100);
expect(callMemberPower).toBe(100);
expect(callMemberPower).toBe(0);
});

it("should upload avatar if one is passed", async () => {
Expand Down
Loading