Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
}
);
}
return dispatch => {
CometChat.unblockUsers(usersList).then(
list => {
console.log("users list unblocked", { list });
},
error => {
console.log("unblocking user fails with error", error);
}
);
};
};