Skip to content

Commit

Permalink
don't join user to ban to management room
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Oct 21, 2024
1 parent c7aad5c commit 92c9ca6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/standardConsequenceTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe("Test: standard consequences", function () {
this.timeout(20000);

let protectedRoomId = await this.mjolnir.client.createRoom({ invite: [await badUser.getUserId()] });
await badUser.joinRoom(this.mjolnir.managementRoomId);
await goodUser.joinRoom(this.mjolnir.managementRoomId);
await badUser.joinRoom(protectedRoomId);
await this.mjolnir.addProtectedRoom(protectedRoomId);

Expand Down Expand Up @@ -96,7 +96,7 @@ describe("Test: standard consequences", function () {
ban = event;
}
});
badUser.on("room.event", (roomId, event) => {
goodUser.on("room.event", (roomId, event) => {
if (
roomId === this.mjolnir.managementRoomId &&
event?.type === "m.room.message" &&
Expand Down

0 comments on commit 92c9ca6

Please sign in to comment.