Skip to content

react chat engine advanced admin user auto changing #207

Description

@QMHLO

here is the problem. In the chat engine, my admin username is the seller. Created a new user. The new user's email is user9818@gmail.com. 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));
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions