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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions