Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react chat engine advanced admin user auto changing #207

Open
QMHLO opened this issue Jul 20, 2023 · 0 comments
Open

react chat engine advanced admin user auto changing #207

QMHLO opened this issue Jul 20, 2023 · 0 comments

Comments

@QMHLO
Copy link

QMHLO commented Jul 20, 2023

here is the problem. In the chat engine, my admin username is the seller. Created a new user. The new user's email is [email protected]. When I registered for this email user, the admin user was automatically changed.

function getorCreateChat(callback) {
    axios
        .put(
            "https://api.chatengine.io/chats/", {
                usernames: ["seller", username || localStorage.getItem("email")],
                title: "Chatting",
                is_direct_chat: true,
            }, {
                headers: {
                    "PRIVATE-KEY": process.env.REACT_APP_PRIVATE_KEY
                }
            }
        )
        .then((r) => callback(r.data));
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant