diff --git a/.changeset/green-queens-end.md b/.changeset/green-queens-end.md new file mode 100644 index 000000000000..d6cf413bfcf6 --- /dev/null +++ b/.changeset/green-queens-end.md @@ -0,0 +1,5 @@ +--- +"@rocket.chat/meteor": patch +--- + +Fixes an issue with Federation startup where the bridge would intermittently fail to start causing error being shown "Matrix Bridge isn't running yet". diff --git a/apps/meteor/ee/server/local-services/federation/service.ts b/apps/meteor/ee/server/local-services/federation/service.ts index 5e813caf928a..0fc952d2b6f2 100644 --- a/apps/meteor/ee/server/local-services/federation/service.ts +++ b/apps/meteor/ee/server/local-services/federation/service.ts @@ -133,7 +133,7 @@ abstract class AbstractBaseFederationServiceEE extends AbstractFederationService await super.cleanUpHandlers(); } - public async created(): Promise { + public async started(): Promise { await super.setupFederation(); await this.startFederation(); } @@ -213,8 +213,8 @@ export class FederationServiceEE extends AbstractBaseFederationServiceEE impleme return federationService; } - async created(): Promise { - return super.created(); + async started(): Promise { + return super.started(); } async stopped(): Promise { diff --git a/apps/meteor/server/services/federation/service.ts b/apps/meteor/server/services/federation/service.ts index 904e73913a17..346ca1c4a4e7 100644 --- a/apps/meteor/server/services/federation/service.ts +++ b/apps/meteor/server/services/federation/service.ts @@ -414,7 +414,7 @@ abstract class AbstractBaseFederationService extends AbstractFederationService { await super.cleanUpSettingObserver(); } - public async created(): Promise { + public async started(): Promise { await super.setupFederation(); await this.startFederation(); } @@ -447,8 +447,8 @@ export class FederationService extends AbstractBaseFederationService implements return super.stopped(); } - public async created(): Promise { - return super.created(); + public async started(): Promise { + return super.started(); } public async verifyConfiguration(): Promise {