Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}
);
}
static setGroupRequestBuilder(limit){
CCManager.groupRequest = new CometChat.GroupsRequestBuilder().setLimit(limit).build();
}