diff --git a/src/components/structures/RightPanel.js b/src/components/structures/RightPanel.js index 82933c7449..55f588f212 100644 --- a/src/components/structures/RightPanel.js +++ b/src/components/structures/RightPanel.js @@ -271,15 +271,15 @@ module.exports = React.createClass({ ) { const cli = this.context.matrixClient; const room = cli.getRoom(this.props.roomId); - let userIsInRoom; + let isUserInRoom; if (room) { const numMembers = room.getJoinedMembers().length; membersTitle = _t('%(count)s Members', { count: numMembers }); membersBadge =
{ formatCount(numMembers) }
; - userIsInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join'); + isUserInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join'); } - if (userIsInRoom) { + if (isUserInRoom) { inviteGroup =