chore: add rest api return (#3850)
This commit is contained in:
parent
1ef9f57f3d
commit
ec7538abfd
|
@ -57,4 +57,7 @@ export type ChatEndpoints = {
|
|||
'chat.react': {
|
||||
POST: (params: { emoji: string; messageId: string }) => void;
|
||||
};
|
||||
'chat.ignoreUser': {
|
||||
GET: (params: { rid: string; userId: string; ignore: boolean }) => {};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -518,10 +518,8 @@ export const removeUserFromRoom = ({ roomId, t, userId }: { roomId: string; t: R
|
|||
// RC 0.48.0
|
||||
sdk.post(`${roomTypeToApiType(t)}.kick`, { roomId, userId });
|
||||
|
||||
export const ignoreUser = ({ rid, userId, ignore }: { rid: string; userId: string; ignore: boolean }): any =>
|
||||
export const ignoreUser = ({ rid, userId, ignore }: { rid: string; userId: string; ignore: boolean }) =>
|
||||
// RC 0.64.0
|
||||
// TODO: missing definitions from server
|
||||
// @ts-ignore
|
||||
sdk.get('chat.ignoreUser', { rid, userId, ignore });
|
||||
|
||||
export const toggleArchiveRoom = (roomId: string, t: SubscriptionType, archive: boolean) => {
|
||||
|
|
Loading…
Reference in New Issue