@@ -81,6 +81,7 @@ import {
8181 COMMAND_CONFIRMATION_LISTENER ,
8282 makeConfirmationPromptListener ,
8383} from "./commands/interface-manager/MatrixPromptForConfirmation" ;
84+ import { SynapseHttpAntispam } from "./webapis/SynapseHTTPAntispam/SynapseHttpAntispam" ;
8485const log = new Logger ( "Draupnir" ) ;
8586
8687// webAPIS should not be included on the Draupnir class.
@@ -144,7 +145,8 @@ export class Draupnir implements Client, MatrixAdaptorContext {
144145 public readonly acceptInvitesFromRoom : MatrixRoomID ,
145146 public readonly acceptInvitesFromRoomIssuer : RoomMembershipRevisionIssuer ,
146147 public readonly safeModeToggle : SafeModeToggle ,
147- public readonly synapseAdminClient ?: SynapseAdminClient
148+ public readonly synapseAdminClient : SynapseAdminClient | undefined ,
149+ public readonly synapseHTTPAntispam : SynapseHttpAntispam | undefined
148150 ) {
149151 this . managementRoomOutput = new ManagementRoomOutput (
150152 this . managementRoomDetail ,
@@ -209,7 +211,8 @@ export class Draupnir implements Client, MatrixAdaptorContext {
209211 roomMembershipManager : RoomMembershipManager ,
210212 config : IConfig ,
211213 loggableConfigTracker : LoggableConfigTracker ,
212- safeModeToggle : SafeModeToggle
214+ safeModeToggle : SafeModeToggle ,
215+ synapseHTTPAntispam : SynapseHttpAntispam | undefined
213216 ) : Promise < ActionResult < Draupnir > > {
214217 const acceptInvitesFromRoom = await ( async ( ) => {
215218 if ( config . autojoinOnlyIfManager ) {
@@ -267,7 +270,8 @@ export class Draupnir implements Client, MatrixAdaptorContext {
267270 acceptInvitesFromRoom . ok ,
268271 acceptInvitesFromRoomIssuer . ok ,
269272 safeModeToggle ,
270- new SynapseAdminClient ( client , clientUserID )
273+ new SynapseAdminClient ( client , clientUserID ) ,
274+ synapseHTTPAntispam
271275 ) ;
272276 const loadResult = await protectedRoomsSet . protections . loadProtections (
273277 protectedRoomsSet ,
0 commit comments