From 016e91380cd886467c7a9bf47b37ead6a8d10a8d Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Tue, 14 Nov 2023 11:46:50 +0100 Subject: [PATCH] FIX: correct online indicator for non interactive (#24364) When introducing non interactive user avatar, the `chat-user-avatar__container` div has been omitted, which prevented the css to correctly apply. --- .../javascripts/discourse/components/chat-user-avatar.gjs | 4 +++- plugins/chat/spec/plugin_helper.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/chat/assets/javascripts/discourse/components/chat-user-avatar.gjs b/plugins/chat/assets/javascripts/discourse/components/chat-user-avatar.gjs index 83f96bda4d4..d27ee2ba5ec 100644 --- a/plugins/chat/assets/javascripts/discourse/components/chat-user-avatar.gjs +++ b/plugins/chat/assets/javascripts/discourse/components/chat-user-avatar.gjs @@ -56,7 +56,9 @@ export default class ChatUserAvatar extends Component { {{this.avatar}} {{else}} - {{this.avatar}} + + {{this.avatar}} + {{/if}} diff --git a/plugins/chat/spec/plugin_helper.rb b/plugins/chat/spec/plugin_helper.rb index df600159485..7ba1498efd9 100644 --- a/plugins/chat/spec/plugin_helper.rb +++ b/plugins/chat/spec/plugin_helper.rb @@ -42,7 +42,7 @@ module ChatSystemHelpers in_reply_to_id: in_reply_to, thread_id: thread_id, guardian: last_user.guardian, - message: Faker::Lorem.words(number: 5).join(" "), + message: Faker::Alphanumeric.alpha(number: SiteSetting.chat_minimum_message_length), ) raise "#{creator.inspect_steps.inspect}\n\n#{creator.inspect_steps.error}" if creator.failure?