Chore: Migrate REST API - e2eRequestRoomKey to Typescript (#3814)

This commit is contained in:
Gleidson Daniel Silva 2022-03-08 09:52:16 -03:00 committed by GitHub
parent 8decd0f4b6
commit d19ce3b3e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ export const e2eUpdateGroupKey = (uid: string, rid: string, key: string): any =>
// RC 0.70.0
sdk.post('e2e.updateGroupKey', { uid, rid, key });
export const e2eRequestRoomKey = (rid: string, e2eKeyId: string) =>
export const e2eRequestRoomKey = (rid: string, e2eKeyId: string): Promise<{ message: { msg?: string }; success: boolean }> =>
// RC 0.70.0
sdk.methodCallWrapper('stream-notify-room-users', `${rid}/e2ekeyRequest`, rid, e2eKeyId);