chore: add rest api return (#3829)

This commit is contained in:
Alex Junior 2022-03-05 00:28:36 -03:00 committed by GitHub
parent 70c15343e8
commit f69ef6e59b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -51,4 +51,7 @@ export type ChatEndpoints = {
message: Pick<IMessage, '_id' | 'rid' | 'u'>; message: Pick<IMessage, '_id' | 'rid' | 'u'>;
}; };
}; };
'chat.react': {
POST: (params: { emoji: string; messageId: string }) => void;
};
}; };

View File

@ -273,10 +273,8 @@ export const setUserStatus = (status?: string, message?: string): any =>
// @ts-ignore // @ts-ignore
sdk.post('users.setStatus', { status, message }); 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 // RC 0.62.2
// TODO: missing definitions from server
// @ts-ignore
sdk.post('chat.react', { emoji, messageId }); sdk.post('chat.react', { emoji, messageId });
export const toggleRead = (read: boolean, roomId: string) => { export const toggleRead = (read: boolean, roomId: string) => {