Update for MPS ProtectedRoomsManager.

This commit is contained in:
gnuxie authored and Gnuxie committed 2024-05-02 15:57:44 +01:00
1 parent a85d292841
commit 0049dfd367
12 files changed
+27 -50

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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 => {