chore: add rest api return (#3844)

This commit is contained in:
Alex Junior 2022-03-07 12:23:28 -03:00 committed by GitHub
parent b21d044f13
commit 9652692af5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -435,7 +435,11 @@ export const deleteRoom = (roomId: string, t: RoomTypes) =>
// RC 0.49.0
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) {
// RC 0.51.0
return sdk.methodCallWrapper('muteUserInRoom', { rid, username });