fix pass name

This commit is contained in:
jusax23 2023-03-30 14:13:01 +02:00
parent dcfa6d5df5
commit ea501d3861
Signed by: jusax23
GPG key ID: 499E2AA870C1CD41

View file

@ -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;
}