Skip to content

Commit

Permalink
Merge pull request #399 from matrix-org/hs/no-op-check-support
Browse files Browse the repository at this point in the history
Fix mention of MSC2666 in error message
  • Loading branch information
Half-Shot authored May 5, 2022
2 parents f2cc189 + 2a43415 commit ea7c686
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/399.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Improve error messasge raised `m.login.application_service` is not provided by the homeserver.
5 changes: 4 additions & 1 deletion src/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
);
}
}
}
Expand Down

0 comments on commit ea7c686

Please sign in to comment.