use getJoinedMemberCount() instead of getJoinedMembers().length as the latter doesnt take LL into account
This commit is contained in:
parent
860c6355f0
commit
a54629276f
4 changed files with 4 additions and 4 deletions
|
@ -280,7 +280,7 @@ module.exports = React.createClass({
|
|||
const room = cli.getRoom(this.props.roomId);
|
||||
let isUserInRoom;
|
||||
if (room) {
|
||||
const numMembers = room.getJoinedMembers().length;
|
||||
const numMembers = room.getJoinedMemberCount();
|
||||
membersTitle = _t('%(count)s Members', { count: numMembers });
|
||||
membersBadge = <div title={membersTitle}>{ formatCount(numMembers) }</div>;
|
||||
isUserInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue