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) => {