How to use the @cometchat-pro/chat.CometChat.GroupsRequestBuilder 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 / components / embed / CCGroupList.js View on Github external
fetchGroupsWithSearchKey=(key)=>{
    let groupsRequest = new CometChat.GroupsRequestBuilder().setLimit(100).setSearchKeyWord(key).build();

    groupsRequest.fetchNext().then(
      groupList => {              
        this.setState({searchMode:true,searchData:groupList});
      },
      error => {
        console.log("Groups list fetching failed with error", error);
      }
    );
  }
github cometchat-pro-samples / javascript-reactjs-chat-app / src / js / lib / cometchat / ccManager.js View on Github external
static setGroupRequestBuilder(limit){
    CCManager.groupRequest = new CometChat.GroupsRequestBuilder().setLimit(limit).build();
  }