Skip to content

T3chguy/num members tooltip#5929

Merged
lukebarnard1 merged 4 commits intodevelopfrom
t3chguy/num_members_tooltip
Jan 22, 2018
Merged

T3chguy/num members tooltip#5929
lukebarnard1 merged 4 commits intodevelopfrom
t3chguy/num_members_tooltip

Conversation

@t3chguy
Copy link
Copy Markdown
Member

@t3chguy t3chguy commented Jan 5, 2018

Fixes #5858

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
Comment thread src/components/structures/RightPanel.js Outdated
this.context.matrixClient.credentials.userId, 'join',
);
const numMembers = room.getJoinedMembers().length;
membersTitle = _t('%(numMembers)s Members', { numMembers });
Copy link
Copy Markdown
Member

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?

Copy link
Copy Markdown
Member Author

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>
Comment thread src/components/structures/RightPanel.js Outdated
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');
Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Member Author

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>
@lukebarnard1 lukebarnard1 merged commit 9d387c3 into develop Jan 22, 2018
@t3chguy t3chguy deleted the t3chguy/num_members_tooltip branch May 12, 2022 09:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants