diff --git a/app/definitions/rest/v1/e2e.ts b/app/definitions/rest/v1/e2e.ts index 44705c851..f23c0fac9 100644 --- a/app/definitions/rest/v1/e2e.ts +++ b/app/definitions/rest/v1/e2e.ts @@ -15,4 +15,7 @@ export type E2eEndpoints = { 'e2e.setRoomKeyID': { POST: (params: { rid: string; keyID: string }) => {}; }; + 'e2e.fetchMyKeys': { + GET: () => { public_key: string; private_key: string }; + }; }; diff --git a/app/lib/rocketchat/rocketchat.js b/app/lib/rocketchat/rocketchat.js index 6396d5e8a..71d208f1b 100644 --- a/app/lib/rocketchat/rocketchat.js +++ b/app/lib/rocketchat/rocketchat.js @@ -186,7 +186,6 @@ const RocketChat = { async e2eFetchMyKeys() { // RC 0.70.0 - const sdk = this.shareSDK || this.sdk; const result = await sdk.get('e2e.fetchMyKeys'); // snake_case -> camelCase if (result.success) {