Chore: Migrate REST API - e2eSetRoomKeyID to Typescript (#3816)

This commit is contained in:
Gleidson Daniel Silva 2022-03-04 10:51:39 -03:00 committed by GitHub
parent a7ecc1e427
commit 2e95a3c9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

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

View File

@ -45,10 +45,8 @@ export const e2eGetUsersOfRoomWithoutKey = (rid: string) =>
// RC 0.70.0
sdk.get('e2e.getUsersOfRoomWithoutKey', { rid });
export const e2eSetRoomKeyID = (rid: string, keyID: string): any =>
export const e2eSetRoomKeyID = (rid: string, keyID: string) =>
// RC 0.70.0
// TODO: missing definitions from server
// @ts-ignore
sdk.post('e2e.setRoomKeyID', { rid, keyID });
export const e2eUpdateGroupKey = (uid: string, rid: string, key: string): any =>