Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const joinPublicGroup = group => {
return CometChat.joinGroup(group.guid, CometChat.GROUP_TYPE.PUBLIC, "");
};
export const joinPrivateGroup = group => {
return CometChat.joinGroup(group.guid, CometChat.GROUP_TYPE.PRIVATE, "");
};
export const joinPasswordGroup = (group, password) => {
return CometChat.joinGroup(
group.guid,
CometChat.GROUP_TYPE.PASSWORD,
password
);
};