mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-10-23 01:21:16 +00:00
Update for MPS ProtectedRoomsManager.
This commit is contained in:
1 parent
a85d292841
commit
0049dfd367
12 files changed
+27
-50
No files matched your search
@@ -29,7 +29,7 @@ describe("Ban propagation test", function() {
|
||||
const room = await moderator.createRoom({ invite: [draupnir.clientUserID] });
|
||||
await draupnir.client.joinRoom(room);
|
||||
await moderator.setUserPowerLevel(draupnir.clientUserID, room, 100);
|
||||
await draupnir.protectedRoomsSet.protectedRoomsConfig.addRoom(MatrixRoomReference.fromRoomID(room as StringRoomID));
|
||||
await draupnir.protectedRoomsSet.protectedRoomsManager.addRoom(MatrixRoomReference.fromRoomID(room as StringRoomID));
|
||||
return room;
|
||||
}));
|
||||
// create a policy list so that we can check it for a user rule later
|
||||
|
||||
@@ -16,7 +16,7 @@ describe("Test: Report polling", function() {
|
||||
}
|
||||
let protectedRoomId = await draupnir.client.createRoom({ invite: [await client.getUserId()] });
|
||||
await client.joinRoom(protectedRoomId);
|
||||
await draupnir.protectedRoomsSet.protectedRoomsConfig.addRoom(MatrixRoomReference.fromRoomID(protectedRoomId as StringRoomID));
|
||||
await draupnir.protectedRoomsSet.protectedRoomsManager.addRoom(MatrixRoomReference.fromRoomID(protectedRoomId as StringRoomID));
|
||||
|
||||
const eventId = await client.sendMessage(protectedRoomId, {msgtype: "m.text", body: "uwNd3q"});
|
||||
await new Promise(async resolve => {
|
||||
|
||||
Reference in new issue
Block a user