How to use the @cometchat-pro/chat.CometChat.unblockUsers 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 / CCBlockedUserList.js View on Github external
unblockUser(uid){
        var userlist = [uid];
        var buffer_user = this.state.userlist.find(user => user.uid == uid);
        CometChat.unblockUsers(userlist).then(
            list => {
                this.props.updateUserlistlocal([buffer_user]);
                this.updateUserlist(uid);
                
            }, error => {
                console.log("unblocking user fails with error", error);
            }
        );
    }
github cometchat-pro-samples / javascript-reactjs-chat-app / src / js / store / actions / cc_action.js View on Github external
return dispatch => {
    CometChat.unblockUsers(usersList).then(
      list => {
        console.log("users list unblocked", { list });
      },
      error => {
        console.log("unblocking user fails with error", error);
      }
    );
  };
};