From 01cb050c3953e169a19037bf17de8273619af1fd Mon Sep 17 00:00:00 2001 From: Timo K Date: Mon, 27 Nov 2023 15:13:22 +0100 Subject: [PATCH 1/2] Always allow call.member events on new rooms This translate to: allow group calls by default Signed-off-by: Timo K --- src/createRoom.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/createRoom.ts b/src/createRoom.ts index 4f79cb9c64a..579eeab7f30 100644 --- a/src/createRoom.ts +++ b/src/createRoom.ts @@ -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, }, }; From 600eff0a0d53b9f234abc6509595ab7875283978 Mon Sep 17 00:00:00 2001 From: Timo K Date: Mon, 27 Nov 2023 17:39:55 +0100 Subject: [PATCH 2/2] fix tests Signed-off-by: Timo K --- test/createRoom-test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/createRoom-test.ts b/test/createRoom-test.ts index fa1c31a02fb..91b274c6df7 100644 --- a/test/createRoom-test.ts +++ b/test/createRoom-test.ts @@ -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 () => {