-
Notifications
You must be signed in to change notification settings - Fork 448
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 avatars of users in guest sytem messages #1240
Fix avatars of users in guest sytem messages #1240
Conversation
44fadd7
to
f7924a9
Compare
c2566ea
to
c23098d
Compare
Rebased and fixed the avatars in the message compose field. Please test @danxuliu |
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.
This breaks creating new mentions (although only when sending the message after selecting the user in the auto complete menu, which is not covered by the acceptance tests due to how the auto complete menu is triggered and how Selenium/Mink types text in an input field :-( ).
I will take over this.
When its first parameter is undefined the "avatar()" function gets the user id from the "data-user" attribute, so now the user id must be given explicitly. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
The model holds the data for the message author, but it is not applicable when setting the avatar for mentions, as in that case each mention has its own user data. Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
c23098d
to
78c1fae
Compare
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.
Fixed; tested and works 👍 (although I should not approve myself... :-P )
The avatar always has to use the data from the avatar element and never from the message actor.