Skip to content
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

Use the getProfileInfo API for group inviter profile #1585

Merged
merged 4 commits into from
Nov 8, 2017

Conversation

lukebarnard1
Copy link
Contributor

@lukebarnard1 lukebarnard1 commented Nov 7, 2017

lukebarnard1 added a commit to element-hq/element-web that referenced this pull request Nov 7, 2017
Part of showing the group inviter profile: matrix-org/matrix-react-sdk#1585

let inviterName = group.inviter.userId;
if(this.state.inviterProfile) {
inviterName = this.state.inviterProfile.displayName || group.inviter.userId;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the profile request fails for some reason shouldn't we fall back to mxid? (also, whitespace between if and ( ideally).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it did fail, this.state.inviterProfile will not have been set, and inviterName will be set to group.inviter.userId

@ara4n
Copy link
Member

ara4n commented Nov 7, 2017

lgtm other than minor nit and conflict

@ara4n ara4n assigned lukebarnard1 and unassigned ara4n Nov 7, 2017
@lukebarnard1 lukebarnard1 merged commit 120e7b8 into develop Nov 8, 2017
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.

None yet

2 participants