-
Notifications
You must be signed in to change notification settings - Fork 66
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(stream): Don't render avatar for federated users #1744
Conversation
nickvergessen
commented
Aug 1, 2024
Before | After |
---|---|
![]() |
![]() |
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise fine
if (richObject.server) { | ||
return { | ||
component: NcUserBubble, | ||
props: { | ||
avatarImage: 'icon-user', | ||
displayName: richObject.name, | ||
user: richObject.id, | ||
url: richObject.link, | ||
}, | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe replace existing code with it to avoid duplications?
if (richObject.server) { | |
return { | |
component: NcUserBubble, | |
props: { | |
avatarImage: 'icon-user', | |
displayName: richObject.name, | |
user: richObject.id, | |
url: richObject.link, | |
}, | |
} | |
} | |
return { | |
component: NcUserBubble, | |
props: { | |
// show thumbnail for federated users | |
avatarImage: richObject.server ? 'icon-user' : undefined, | |
displayName: richObject.name, | |
user: richObject.id, | |
url: richObject.link, | |
}, | |
} |
Test summaryRun details
Failures
FlakinessThis comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud |