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

Fix for "otherMember.getAvatarUrl is not a function" #708

Merged
merged 2 commits into from
Aug 31, 2018

Conversation

bwindels
Copy link
Contributor

https://github.com/matrix-org/riot-web-rageshakes/issues/962
was hitting Unhandled rejection TypeError: otherMember.getAvatarUrl is not a function because in case of summary heroes it is returning a userid and not a member.

Also adds another fallback route for getting the avatar by looking up the user.

@bwindels bwindels requested a review from a team August 31, 2018 09:08
@bwindels
Copy link
Contributor Author

Regarding the user fallback, the complete thing to do here would also be to fallback to fetching the user profile for a hero if the user and member are not available, but then the whole things becomes async. I guess this will be fine for now.

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.

2 participants