From ea501d386130cb981e337f17d8af2b4fcc119673 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Thu, 30 Mar 2023 14:13:01 +0200 Subject: [PATCH] fix pass name --- src/api/acts/rooms.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/acts/rooms.ts b/src/api/acts/rooms.ts index 8579f51..ff7fcd5 100644 --- a/src/api/acts/rooms.ts +++ b/src/api/acts/rooms.ts @@ -650,7 +650,7 @@ export const setVisibility: Act = { func: async (client, data, aws) => { if (!checkSelfTag(data.server)) { if (client.state != STATE.client) return void aws("error", "right"); - let resp = await client.pass(data.server, "roomSettings", data); + let resp = await client.pass(data.server, "setVisibility", data); aws(resp.state, resp.data); return; } @@ -675,7 +675,7 @@ export const setRoomRight: Act = { func: async (client, data, aws) => { if (!checkSelfTag(data.server)) { if (client.state != STATE.client) return void aws("error", "right"); - let resp = await client.pass(data.server, "roomSettings", data); + let resp = await client.pass(data.server, "setRoomRight", data); aws(resp.state, resp.data); return; } @@ -702,7 +702,7 @@ export const changeRoomMeta: Act = { func: async (client: Client, data: any, aws: (code: string, data: any) => void) => { if (!checkSelfTag(data.server)) { if (client.state != STATE.client) return void aws("error", "right"); - let resp = await client.pass(data.server, "roomMeta", data); + let resp = await client.pass(data.server, "changeRoomMeta", data); aws(resp.state, resp.data); return; }