-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
T3chguy/num members tooltip #5929
Conversation
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
this.context.matrixClient.credentials.userId, 'join', | ||
); | ||
const numMembers = room.getJoinedMembers().length; | ||
membersTitle = _t('%(numMembers)s Members', { numMembers }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and if there's one member?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arg
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
const numMembers = room.getJoinedMembers().length; | ||
membersTitle = _t('%(count)s Members', { count: numMembers }); | ||
membersBadge = <div title={membersTitle}>{ formatCount(numMembers) }</div>; | ||
userIsInRoom = room.hasMembershipState(this.context.matrixClient.credentials.userId, 'join'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's not your fault, but can you rename userIsInRoom
to isUserInRoom
- I'm finding it easy to misread.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Fixes #5858