diff --git a/plugins/chat/lib/onebox/templates/discourse_chat_message.mustache b/plugins/chat/lib/onebox/templates/discourse_chat_message.mustache index ae157c505a3..0d3ed10ec09 100644 --- a/plugins/chat/lib/onebox/templates/discourse_chat_message.mustache +++ b/plugins/chat/lib/onebox/templates/discourse_chat_message.mustache @@ -7,7 +7,12 @@
{{username}}
- {{created_at}} + {{#thread_id}} + {{created_at}} + {{/thread_id}} + {{^thread_id}} + {{created_at}} + {{/thread_id}}
{{#is_category}} diff --git a/plugins/chat/spec/lib/chat/onebox_handler_spec.rb b/plugins/chat/spec/lib/chat/onebox_handler_spec.rb index adf0454dd20..02ddae356cd 100644 --- a/plugins/chat/spec/lib/chat/onebox_handler_spec.rb +++ b/plugins/chat/spec/lib/chat/onebox_handler_spec.rb @@ -93,7 +93,7 @@ describe Chat::OneboxHandler do
#{user.username}
- #{public_message.created_at} + #{public_message.created_at}