From d19ce3b3e4eea892e970f61df45789d48a61744c Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Tue, 8 Mar 2022 09:52:16 -0300 Subject: [PATCH] Chore: Migrate REST API - e2eRequestRoomKey to Typescript (#3814) --- app/lib/rocketchat/services/restApi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/rocketchat/services/restApi.ts b/app/lib/rocketchat/services/restApi.ts index 2e9a39be8..87fc879e3 100644 --- a/app/lib/rocketchat/services/restApi.ts +++ b/app/lib/rocketchat/services/restApi.ts @@ -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);