Skip to content

Commit

Permalink
Fixing the check for moderator role
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalnarkhede committed Mar 20, 2020
1 parent 8f10a32 commit 311fab9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export class Message extends Component {
isModerator = () =>
this.props.members &&
this.props.members[this.props.client.user.id] &&
this.props.members[this.props.client.user.id].role === 'moderator';
this.props.members[this.props.client.user.id].is_moderator;

canEditMessage = (message) =>
this.isMyMessage(message) ||
Expand Down

0 comments on commit 311fab9

Please sign in to comment.