mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Stop ProtectedRoomsSet verifying permissions for unprotected rooms.
This commit is contained in:
parent
c537f2067e
commit
c7ba745081
@ -173,6 +173,9 @@ export class ProtectedRoomsSet {
|
||||
if (event['sender'] === this.clientUserId) {
|
||||
throw new TypeError("`ProtectedRooms::handleEvent` should not be used to inform about events sent by mjolnir.");
|
||||
}
|
||||
if (!this.protectedRooms.has(roomId)) {
|
||||
return; // We're not protecting this room.
|
||||
}
|
||||
this.protectedRoomActivityTracker.handleEvent(roomId, event);
|
||||
if (event['type'] === 'm.room.power_levels' && event['state_key'] === '') {
|
||||
// power levels were updated - recheck permissions
|
||||
|
Loading…
Reference in New Issue
Block a user