11import type { EventStore } from '@rocket.chat/federation-core' ;
22import type { PduForType , PduType } from '@rocket.chat/federation-room' ;
3- import { delay , inject , singleton } from 'tsyringe' ;
3+ import { singleton } from 'tsyringe' ;
44
55import { AppConfig , ConfigService } from './services/config.service' ;
66import { EduService } from './services/edu.service' ;
@@ -22,29 +22,20 @@ import { WellKnownService } from './services/well-known.service';
2222@singleton ( )
2323export class FederationSDK {
2424 constructor (
25- @inject ( delay ( ( ) => RoomService ) ) private readonly roomService : RoomService ,
26- @inject ( delay ( ( ) => MessageService ) )
25+ private readonly roomService : RoomService ,
2726 private readonly messageService : MessageService ,
28- @inject ( delay ( ( ) => InviteService ) )
2927 private readonly inviteService : InviteService ,
30- @inject ( delay ( ( ) => EventService ) )
3128 private readonly eventService : EventService ,
32- @inject ( delay ( ( ) => EduService ) ) private readonly eduService : EduService ,
33- @inject ( delay ( ( ) => ServerService ) )
29+ private readonly eduService : EduService ,
3430 private readonly serverService : ServerService ,
3531 private readonly configService : ConfigService ,
36- @inject ( delay ( ( ) => EventAuthorizationService ) )
3732 private readonly eventAuthorizationService : EventAuthorizationService ,
38- @inject ( delay ( ( ) => StateService ) )
3933 private readonly stateService : StateService ,
4034 private readonly mediaService : MediaService ,
41- @inject ( delay ( ( ) => ProfilesService ) )
4235 private readonly profilesService : ProfilesService ,
43- @inject ( delay ( ( ) => SendJoinService ) )
4436 private readonly sendJoinService : SendJoinService ,
4537 private readonly wellKnownService : WellKnownService ,
4638 private readonly federationRequestService : FederationRequestService ,
47- @inject ( delay ( ( ) => FederationService ) )
4839 private readonly federationService : FederationService ,
4940 ) { }
5041
0 commit comments