mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 20:05:24 +08:00

- group writes when computing separators positions - shows skeleton only on initial load - forces date separator to be pinned when first message to prevent a pinned - not pinned - pinned sequence when loading more in past - relies on `message.visible` property instead of checking `isElementInViewport` - attempts to load next/prev messages earlier - do not scroll to on fetch more - hides `last visit` text while pinned
17 lines
365 B
Handlebars
17 lines
365 B
Handlebars
<div class="chat-message-text">
|
|
{{#if this.isCollapsible}}
|
|
<ChatMessageCollapser
|
|
@cooked={{@cooked}}
|
|
@uploads={{@uploads}}
|
|
@onToggleCollapse={{@onToggleCollapse}}
|
|
/>
|
|
{{else}}
|
|
{{html-safe @cooked}}
|
|
{{/if}}
|
|
|
|
{{#if this.isEdited}}
|
|
<span class="chat-message-edited">({{i18n "chat.edited"}})</span>
|
|
{{/if}}
|
|
|
|
{{yield}}
|
|
</div> |