msglist: Use avatar URL from message object if sender is unknown to UsersStore
#1556
Labels
a-msglist
The message-list screen, except what's label:a-content
Milestone
Uh oh!
There was an error while loading. Please reload this page.
This is a sub-issue of #716. Quoting from there, for background:
The get-messages response contains an
avatar_url
field for the sender. Ifstore.getUser
gives null, that field can be used as a fallback, so we don't have to show just a blank square.Implementation
Our
AvatarUrl
class has afactory AvatarUrl.fromUserData
method. If that doesn't give the right behavior, perhaps it should grow afactory AvatarUrl.fromMessageData
for this.We should see about handling
client_gravatar
anduser_avatar_url_field_optional
(does the get-messages endpoint not have a param for the latter?); see:client_gravatar
true) #255user_avatar_url_field_optional
#254The text was updated successfully, but these errors were encountered: