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

Commit 372737d

Browse files
authored
Always allow call.member events on new rooms (#11948)
* Always allow call.member events on new rooms This translate to: allow group calls by default Signed-off-by: Timo K <[email protected]> * fix tests Signed-off-by: Timo K <[email protected]> --------- Signed-off-by: Timo K <[email protected]>
1 parent fbf72f6 commit 372737d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/createRoom.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ export default async function createRoom(client: MatrixClient, opts: IOpts): Pro
187187
createOpts.power_level_content_override = {
188188
events: {
189189
...DEFAULT_EVENT_POWER_LEVELS,
190-
// Element Call should be disabled by default
191-
[ElementCall.MEMBER_EVENT_TYPE.name]: 100,
192-
// Make sure only admins can enable it
190+
// It should always (including non video rooms) be possible to join a group call.
191+
[ElementCall.MEMBER_EVENT_TYPE.name]: 0,
192+
// Make sure only admins can enable it (DEPRECATED)
193193
[ElementCall.CALL_EVENT_TYPE.name]: 100,
194194
},
195195
};

test/createRoom-test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ describe("createRoom", () => {
127127
];
128128

129129
expect(callPower).toBe(100);
130-
expect(callMemberPower).toBe(100);
130+
expect(callMemberPower).toBe(0);
131131
});
132132

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

0 commit comments

Comments
 (0)