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.
This commit is contained in:
Joffrey JAFFEUX
2023-07-10 09:36:20 +02:00
committed by GitHub
parent 81a16a105e
commit 03e495186f
23 changed files with 121 additions and 114 deletions

View File

@ -71,7 +71,7 @@ module("Discourse Chat | Component | chat-channel-title", function (hooks) {
const user = this.channel.chatable.users[0];
assert.true(
exists(`.chat-user-avatar-container .avatar[title="${user.username}"]`)
exists(`.chat-user-avatar__container .avatar[title="${user.username}"]`)
);
assert.strictEqual(