mirror of
https://github.com/wassname/talk.git
synced 2026-07-20 12:40:47 +08:00
Adding message
This commit is contained in:
@@ -15,7 +15,7 @@ class BanUserDialogContainer extends Component {
|
||||
banUser = async () => {
|
||||
const {userId, commentId, commentStatus, banUser, setCommentStatus, hideBanUserDialog, notify} = this.props;
|
||||
try {
|
||||
await banUser({id: userId, status: true});
|
||||
await banUser({id: userId, message: ''});
|
||||
hideBanUserDialog();
|
||||
if (commentId && commentStatus && commentStatus !== 'REJECTED') {
|
||||
await setCommentStatus({commentId, status: 'REJECTED'});
|
||||
|
||||
@@ -26,7 +26,7 @@ class BanUserDialogContainer extends React.Component {
|
||||
try {
|
||||
await banUser({
|
||||
id: authorId,
|
||||
status: true,
|
||||
message: '',
|
||||
});
|
||||
|
||||
closeMenu();
|
||||
|
||||
Reference in New Issue
Block a user