Load Draupnir protections in the DraupnirProtectedRoomsSet.

This commit is contained in:
gnuxie
2024-04-06 20:03:35 +01:00
parent 89ee808f6a
commit 2f8215761c
2 changed files with 16 additions and 0 deletions
@@ -28,6 +28,7 @@ limitations under the License.
import { ActionResult, MJOLNIR_PROTECTED_ROOMS_EVENT_TYPE, MJOLNIR_WATCHED_POLICY_ROOMS_EVENT_TYPE, MatrixRoomID, MatrixRoomReference, MjolnirEnabledProtectionsEvent, MjolnirEnabledProtectionsEventType, MjolnirPolicyRoomsConfig, MjolnirProtectedRoomsConfig, MjolnirProtectedRoomsEvent, MjolnirProtectionSettingsEventType, MjolnirProtectionsConfig, MjolnirWatchedPolicyRoomsEvent, Ok, PolicyListConfig, PolicyRoomManager, ProtectedRoomsConfig, ProtectedRoomsSet, ProtectionsConfig, RoomMembershipManager, RoomStateManager, SetMembership, SetRoomState, StandardProtectedRoomsSet, StandardSetMembership, StandardSetRoomState, StringRoomAlias, StringRoomID, StringUserID, isError } from "matrix-protection-suite";
import { BotSDKMatrixAccountData, BotSDKMatrixStateData, MatrixSendClient, resolveRoomReferenceSafe } from "matrix-protection-suite-for-matrix-bot-sdk";
import { DefaultEnabledProtectionsMigration } from "../protections/DefaultEnabledProtectionsMigration";
import '../protections/DraupnirProtectionsIndex';
async function makePolicyListConfig(
client: MatrixSendClient,
@@ -0,0 +1,15 @@
/**
* This file exists as a way to register all protections.
* In future, we should maybe try to dogfood the dynamic plugin load sytem
* instead. For now that system doesn't even exist.
*/
// keep alphabetical please.
import './BanPropagation';
import './BasicFlooding';
import './FirstMessageIsImage';
import './JoinWaveShortCircuit';
import './MessageIsMedia';
import './MessageIsVoice';
import './TrustedReporters';
import './WordList';