Error when try to change host

I try to change host on button click.

This is function

 const changeHost = async () => {
        const currentUser = await zmClient.getCurrentUserInfo();
        await zmClient.makeHost(currentUser.userId);
}

Get error

  1. reason: “operation is not applicable to self”
  2. type: “INVALID_OPERATION”

Can host be changed on this way?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.