Skip to content

Commit

Permalink
Fixes #13627 (#13630)
Browse files Browse the repository at this point in the history
  • Loading branch information
knrt10 authored and ggazzo committed Mar 12, 2019
1 parent af1077e commit 44d8492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rocketchat-ui-flextab/client/tabs/userActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ export const getActions = function({ user, directActions, hideAdminControls }) {
}
if (isBlocker()) {
return {
icon : 'mic',
icon : 'ban',
name:t('Unblock_User'),
action: prevent(getUser, ({ _id }) => Meteor.call('unblockUser', { rid: Session.get('openedRoom'), blocked: _id }, success(() => toastr.success(t('User_is_unblocked'))))),
};
}
return {
icon : 'mic',
icon : 'ban',
name:t('Block_User'),
modifier: 'alert',
action: prevent(getUser, ({ _id }) => Meteor.call('blockUser', { rid: Session.get('openedRoom'), blocked: _id }, success(() => toastr.success(t('User_is_blocked'))))),
Expand Down

0 comments on commit 44d8492

Please sign in to comment.