How to use the @cometchat-pro/chat.CometChat.joinGroup function in @cometchat-pro/chat

To help you get started, we’ve selected a few @cometchat-pro/chat examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cometchat-pro-samples / javascript-reactjs-chat-app / src / js / store / actions / cc_action.js View on Github external
export const joinPublicGroup = group => {
  return CometChat.joinGroup(group.guid, CometChat.GROUP_TYPE.PUBLIC, "");
};
github cometchat-pro-samples / javascript-reactjs-chat-app / src / js / store / actions / cc_action.js View on Github external
export const joinPrivateGroup = group => {
  return CometChat.joinGroup(group.guid, CometChat.GROUP_TYPE.PRIVATE, "");
};
github cometchat-pro-samples / javascript-reactjs-chat-app / src / js / store / actions / cc_action.js View on Github external
export const joinPasswordGroup = (group, password) => {
  return CometChat.joinGroup(
    group.guid,
    CometChat.GROUP_TYPE.PASSWORD,
    password
  );
};