Copy power levels from spaces to new rooms

This commit is contained in:
Cadence Ember 2024-08-31 16:18:33 +12:00
commit 7afe3e7591
4 changed files with 142 additions and 12 deletions

12
matrix/power.test.js Normal file
View file

@ -0,0 +1,12 @@
// @ts-check
const {test} = require("supertape")
const power = require("./power")
test("power: get affected rooms", t => {
t.deepEqual(power._getAffectedRooms(), [{
mxid: "@test_auto_invite:example.org",
power_level: 100,
room_id: "!kLRqKKUQXcibIMtOpl:cadence.moe",
}])
})