chore: add rest api return (#3844)
This commit is contained in:
parent
b21d044f13
commit
9652692af5
|
@ -435,7 +435,11 @@ export const deleteRoom = (roomId: string, t: RoomTypes) =>
|
||||||
// RC 0.49.0
|
// RC 0.49.0
|
||||||
sdk.post(`${roomTypeToApiType(t)}.delete`, { roomId });
|
sdk.post(`${roomTypeToApiType(t)}.delete`, { roomId });
|
||||||
|
|
||||||
export const toggleMuteUserInRoom = (rid: string, username: string, mute: boolean) => {
|
export const toggleMuteUserInRoom = (
|
||||||
|
rid: string,
|
||||||
|
username: string,
|
||||||
|
mute: boolean
|
||||||
|
): Promise<{ message: { msg: string; result: boolean }; success: boolean }> => {
|
||||||
if (mute) {
|
if (mute) {
|
||||||
// RC 0.51.0
|
// RC 0.51.0
|
||||||
return sdk.methodCallWrapper('muteUserInRoom', { rid, username });
|
return sdk.methodCallWrapper('muteUserInRoom', { rid, username });
|
||||||
|
|
Loading…
Reference in New Issue