Although firebase is used for google login, the chat user name is not set to the current user. It is hardcoded to Amarnath. Use the below snippet at newIndex.html to keep the current user chat name to the actual user's name.
firebase.auth().onAuthStateChanged((user) => {
if (user) {
console.log(user.uid);
}
});
Although firebase is used for google login, the chat user name is not set to the current user. It is hardcoded to Amarnath. Use the below snippet at
newIndex.htmlto keep the current user chat name to the actual user's name.