chore: add rest api return (#3829)
This commit is contained in:
parent
70c15343e8
commit
f69ef6e59b
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -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) => {
|
||||||
|
|
Loading…
Reference in New Issue