Chore: Migrate REST API - e2eFetchMyKeys to Typescript

This commit is contained in:
Reinaldo Neto 2022-03-11 13:26:16 -03:00
parent d73da2942b
commit bfdc53a48d
2 changed files with 3 additions and 1 deletions

View File

@ -15,4 +15,7 @@ export type E2eEndpoints = {
'e2e.setRoomKeyID': {
POST: (params: { rid: string; keyID: string }) => {};
};
'e2e.fetchMyKeys': {
GET: () => { public_key: string; private_key: string };
};
};

View File

@ -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) {