@@ -72,7 +72,8 @@ export class ProtectionManager {
72
72
*/
73
73
public async start ( ) {
74
74
this . mjolnir . reportManager . on ( "report.new" , this . handleReport . bind ( this ) ) ;
75
- this . mjolnir . matrixEmitter . on ( "room.event" , ( ...args ) => this . handleEvent ( ...args ) ) ;
75
+ // Commented out for September 2nd, 2025 database incident
76
+ // this.mjolnir.matrixEmitter.on("room.event", (...args) => this.handleEvent(...args));
76
77
for ( const protection of PROTECTIONS ) {
77
78
try {
78
79
await this . registerProtection ( protection ) ;
@@ -187,8 +188,9 @@ export class ProtectionManager {
187
188
* Make a list of the names of enabled protections and save them in a state event
188
189
*/
189
190
private async saveEnabledProtections ( ) {
190
- const protections = this . enabledProtections . map ( ( p ) => p . name ) ;
191
- await this . mjolnir . client . setAccountData ( ENABLED_PROTECTIONS_EVENT_TYPE , { enabled : protections } ) ;
191
+ // Commented out for September 2nd, 2025 database incident
192
+ // const protections = this.enabledProtections.map((p) => p.name);
193
+ // await this.mjolnir.client.setAccountData(ENABLED_PROTECTIONS_EVENT_TYPE, { enabled: protections });
192
194
}
193
195
/*
194
196
* Enable a protection by name and persist its enable state in to a state event
@@ -200,11 +202,12 @@ export class ProtectionManager {
200
202
if ( protection === undefined ) {
201
203
return ;
202
204
}
203
- protection . enabled = true ;
204
- await this . saveEnabledProtections ( ) ;
205
- for ( let roomId of this . mjolnir . protectedRoomsTracker . getProtectedRooms ( ) ) {
206
- await protection . startProtectingRoom ( this . mjolnir , roomId ) ;
207
- }
205
+ // Commented out for September 2nd, 2025 database incident
206
+ // protection.enabled = true;
207
+ // await this.saveEnabledProtections();
208
+ // for (let roomId of this.mjolnir.protectedRoomsTracker.getProtectedRooms()) {
209
+ // await protection.startProtectingRoom(this.mjolnir, roomId);
210
+ // }
208
211
}
209
212
210
213
public get enabledProtections ( ) : Protection [ ] {
0 commit comments