diff --git a/changelog.d/399.misc b/changelog.d/399.misc new file mode 100644 index 00000000..5b11acce --- /dev/null +++ b/changelog.d/399.misc @@ -0,0 +1 @@ +Improve error messasge raised `m.login.application_service` is not provided by the homeserver. \ No newline at end of file diff --git a/src/bridge.ts b/src/bridge.ts index d84f8e79..1ac7b00c 100644 --- a/src/bridge.ts +++ b/src/bridge.ts @@ -1690,7 +1690,10 @@ export class Bridge { const loginFlows: {flows: {type: string}[]} = await this.botSdkAS.botClient.doRequest("GET", "/_matrix/client/r0/login"); if (!EncryptedEventBroker.supportsLoginFlow(loginFlows)) { - throw Error('To enable support for encryption, your homeserver must support MSC2666'); + throw Error( + 'To enable support for encryption, your homeserver must support m.login.application_service.' + + ' This was introduced in Matrix 1.2.' + ); } } }