From f69ef6e59b8dc6226d7584c8e4db9b7f283f1589 Mon Sep 17 00:00:00 2001 From: Alex Junior Date: Sat, 5 Mar 2022 00:28:36 -0300 Subject: [PATCH] chore: add rest api return (#3829) --- app/definitions/rest/v1/chat.ts | 3 +++ app/lib/rocketchat/services/restApi.ts | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/definitions/rest/v1/chat.ts b/app/definitions/rest/v1/chat.ts index 06f5f733d..4f876d62d 100644 --- a/app/definitions/rest/v1/chat.ts +++ b/app/definitions/rest/v1/chat.ts @@ -51,4 +51,7 @@ export type ChatEndpoints = { message: Pick; }; }; + 'chat.react': { + POST: (params: { emoji: string; messageId: string }) => void; + }; }; diff --git a/app/lib/rocketchat/services/restApi.ts b/app/lib/rocketchat/services/restApi.ts index c8bc0cf3e..c2cc66e63 100644 --- a/app/lib/rocketchat/services/restApi.ts +++ b/app/lib/rocketchat/services/restApi.ts @@ -273,10 +273,8 @@ export const setUserStatus = (status?: string, message?: string): any => // @ts-ignore sdk.post('users.setStatus', { status, message }); -export const setReaction = (emoji: string, messageId: string): any => +export const setReaction = (emoji: string, messageId: string) => // RC 0.62.2 - // TODO: missing definitions from server - // @ts-ignore sdk.post('chat.react', { emoji, messageId }); export const toggleRead = (read: boolean, roomId: string) => {