We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c537f20 commit c7ba745Copy full SHA for c7ba745
src/ProtectedRoomsSet.ts
@@ -173,6 +173,9 @@ export class ProtectedRoomsSet {
173
if (event['sender'] === this.clientUserId) {
174
throw new TypeError("`ProtectedRooms::handleEvent` should not be used to inform about events sent by mjolnir.");
175
}
176
+ if (!this.protectedRooms.has(roomId)) {
177
+ return; // We're not protecting this room.
178
+ }
179
this.protectedRoomActivityTracker.handleEvent(roomId, event);
180
if (event['type'] === 'm.room.power_levels' && event['state_key'] === '') {
181
// power levels were updated - recheck permissions
0 commit comments