Chore: Migrate REST API - e2eFetchMyKeys to Typescript
This commit is contained in:
parent
d73da2942b
commit
bfdc53a48d
|
@ -15,4 +15,7 @@ export type E2eEndpoints = {
|
|||
'e2e.setRoomKeyID': {
|
||||
POST: (params: { rid: string; keyID: string }) => {};
|
||||
};
|
||||
'e2e.fetchMyKeys': {
|
||||
GET: () => { public_key: string; private_key: string };
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue