CometChat UI Kit code overwrite during deployment from github to netlify Answered
I have a running app at https://socialmuslims.co.uk/ using cometchatprouikit, and the issue is when we modify /src/cometchat-pro-react-ui-kit/CometChatWorkspace/src/components/UserProfile/CometChatUserProfile/index.js file and deploy on server (production) all code in this file is overwritten with your default code. App is built using ReactJS
Replies
1 comment
Hey Mustafa,
Unfortunately, this is not available out of the box but can be achieved by using the below steps:
1. First, you need to create a group using the CometChat API and you will need to create a link that has the group details (GUID of the group) as a part of the URL
2. When a user clicks on the link, you open the link where the following steps take place
3. The CometChat SDK is initialized -> https://www.cometchat.com/docs/javascript-chat-sdk/setup#initialize-cometchat.
4. The user is created if he/she doesn't exist -> https://api-explorer.cometchat.com/reference/creates-user.
5. The user is logged in to the CometChat SDK -> https://www.cometchat.com/docs/javascript-chat-sdk/authentication
6. The user joins the group using the SDK -> https://www.cometchat.com/docs/javascript-chat-sdk/groups-join-group
7. Once the user joins the group, you can open the UI that shows the group chat and the user should be able to send messages in the group and receive messages that were sent in the group.
Feel free to reach out to us if you need any more help.
Provesha Pyne
CometChat
Please sign in to leave a comment.