mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 08:01:42 +08:00
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:
@ -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(
|
||||
|
Reference in New Issue
Block a user