Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
antobinary committed May 22, 2020
1 parent afe9953 commit ca9ae8d
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ class UserDropdown extends PureComponent {
dropdownDirection: 'top',
dropdownVisible: false,
showNestedOptions: false,
banUser: false,
};

this.handleScroll = this.handleScroll.bind(this);
Expand All @@ -163,7 +162,6 @@ class UserDropdown extends PureComponent {
this.renderUserAvatar = this.renderUserAvatar.bind(this);
this.resetMenuState = this.resetMenuState.bind(this);
this.makeDropdownItem = this.makeDropdownItem.bind(this);
this.setBanUser = this.setBanUser.bind(this);
}

componentWillMount() {
Expand Down Expand Up @@ -217,11 +215,6 @@ class UserDropdown extends PureComponent {
return Session.set('dropdownOpen', false);
}

setBanUser(e) {
console.error(`setBanUse:: ${e.target.checked}`, e.target);
this.setState({ banUser: e.target.checked });
}

getUsersActions() {
const {
intl,
Expand All @@ -246,8 +239,7 @@ class UserDropdown extends PureComponent {
meetingIsBreakout,
mountModal,
} = this.props;
const { showNestedOptions, banUser } = this.state;
console.error(`getUsersActions ${banUser}`);
const { showNestedOptions } = this.state;

const amIModerator = currentUser.role === ROLE_MODERATOR;
const actionPermissions = getAvailableActions(amIModerator, meetingIsBreakout, user, voiceUser);
Expand Down

0 comments on commit ca9ae8d

Please sign in to comment.