Skip to content

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

Merged
dbkr merged 2 commits into
developfrom
bwindels/avatarfixbis
Aug 31, 2018
Merged

dbkr merged 2 commits into
developfrom
bwindels/avatarfixbis

Conversation

@bwindels

Copy link
Copy Markdown
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
Copy Markdown
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.

@dbkr
dbkr merged commit b8744a7 into develop Aug 31, 2018
@t3chguy
t3chguy deleted the bwindels/avatarfixbis branch May 10, 2022 14:19
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