Files
discourse/plugins/chat/assets/javascripts/discourse/components/chat-user-info.hbs
Joffrey JAFFEUX 03e495186f FIX: makes chat user avatar show presence by default (#22490)
It's way more common to have presence enabled than disabled, so we should have been making it the default from start.

This commit also changes the namespace of `<ChatUserAvatar />` into `<Chat::UserAvatar />` and refactors tests.
2023-07-10 09:36:20 +02:00

8 lines
267 B
Handlebars

{{#if @user}}
<a href={{this.userPath}} data-user-card={{@user.username}}>
<Chat::UserAvatar @user={{@user}} @avatarSize="medium" />
</a>
<a href={{this.userPath}} data-user-card={{@user.username}}>
<ChatUserDisplayName @user={{@user}} />
</a>
{{/if}}