Chore: Migrate REST API - updateGroupKey to Typescript (#3817)

This commit is contained in:
Gleidson Daniel Silva 2022-03-04 11:08:36 -03:00 committed by GitHub
parent 4bd9dc0e09
commit 9265dc345d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -9,6 +9,9 @@ export type E2eEndpoints = {
users: Pick<IUser, '_id' | 'e2e'>[];
};
};
'e2e.updateGroupKey': {
POST: (params: { uid: string; rid: string; key: string }) => {};
};
'e2e.setRoomKeyID': {
POST: (params: { rid: string; keyID: string }) => {};
};

View File

@ -51,8 +51,6 @@ export const e2eSetRoomKeyID = (rid: string, keyID: string) =>
export const e2eUpdateGroupKey = (uid: string, rid: string, key: string): any =>
// RC 0.70.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('e2e.updateGroupKey', { uid, rid, key });
export const e2eRequestRoomKey = (rid: string, e2eKeyId: string) =>