mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
rename variable as it was horrible to read camelCased
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
290bf54d4f
commit
321f16d8a3
@ -271,15 +271,15 @@ module.exports = React.createClass({
|
|||||||
) {
|
) {
|
||||||
const cli = this.context.matrixClient;
|
const cli = this.context.matrixClient;
|
||||||
const room = cli.getRoom(this.props.roomId);
|
const room = cli.getRoom(this.props.roomId);
|
||||||
let userIsInRoom;
|
let isUserInRoom;
|
||||||
if (room) {
|
if (room) {
|
||||||
const numMembers = room.getJoinedMembers().length;
|
const numMembers = room.getJoinedMembers().length;
|
||||||
membersTitle = _t('%(count)s Members', { count: numMembers });
|
membersTitle = _t('%(count)s Members', { count: numMembers });
|
||||||
membersBadge = <div title={membersTitle}>{ formatCount(numMembers) }</div>;
|
membersBadge = <div title={membersTitle}>{ formatCount(numMembers) }</div>;
|
||||||
userIsInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join');
|
isUserInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (userIsInRoom) {
|
if (isUserInRoom) {
|
||||||
inviteGroup =
|
inviteGroup =
|
||||||
<AccessibleButton className="mx_RightPanel_invite" onClick={this.onInviteButtonClick}>
|
<AccessibleButton className="mx_RightPanel_invite" onClick={this.onInviteButtonClick}>
|
||||||
<div className="mx_RightPanel_icon" >
|
<div className="mx_RightPanel_icon" >
|
||||||
|
Loading…
Reference in New Issue
Block a user