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 <toger5@hotmail.de> * fix tests Signed-off-by: Timo K <toger5@hotmail.de> --------- Signed-off-by: Timo K <toger5@hotmail.de>
This commit is contained in:
parent
fbf72f6a3a
commit
372737d075
2 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
},
|
||||
};
|
||||
|
|
|
@ -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 () => {
|
||||
|
|
Loading…
Reference in a new issue