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 avatars of users in guest sytem messages #1240

Merged
merged 6 commits into from
Nov 12, 2018

Conversation

nickvergessen
Copy link
Member

  • Checkout Allow to make guests moderators #1078
  • As a guest do a moderator action on a user
  • Avatar of the user should be shown 💥
    • instead the first letter of moderators name is shown on grey background

The avatar always has to use the data from the avatar element and never from the message actor.

@nickvergessen nickvergessen requested a review from danxuliu October 4, 2018 14:06
@nickvergessen nickvergessen added this to the 💚 Next Major milestone Oct 4, 2018
@nickvergessen nickvergessen force-pushed the bugfix/noid/avatar-on-mentions-from-guests branch from 44fadd7 to f7924a9 Compare October 4, 2018 15:04
@nickvergessen nickvergessen force-pushed the bugfix/noid/avatar-on-mentions-from-guests branch 2 times, most recently from c2566ea to c23098d Compare November 7, 2018 16:24
@nickvergessen
Copy link
Member Author

Rebased and fixed the avatars in the message compose field.

Please test @danxuliu

Copy link
Member

@danxuliu danxuliu left a 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.

danxuliu and others added 6 commits November 9, 2018 14:28
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>
@danxuliu danxuliu force-pushed the bugfix/noid/avatar-on-mentions-from-guests branch from c23098d to 78c1fae Compare November 9, 2018 17:34
Copy link
Member

@danxuliu danxuliu left a 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 )

@nickvergessen nickvergessen merged commit 7c62787 into master Nov 12, 2018
@nickvergessen nickvergessen deleted the bugfix/noid/avatar-on-mentions-from-guests branch November 12, 2018 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants