diff --git a/app/components/channel-container.hbs b/app/components/channel-container.hbs index c1f22dfa..cbbf46e7 100644 --- a/app/components/channel-container.hbs +++ b/app/components/channel-container.hbs @@ -1,5 +1,5 @@
+ {{on-change @channel this.channelChanged}}>

-
- {{#if @channel.isLogged}} - - Load previous messages - + + {{#if this.historyLoadFailed}} + + {{else if this.showHistoryStart}} +
+ Beginning of history +
{{/if}}
    -
  • - -
  • - {{#each this.renderedMessages as |message|}} -
  • + {{#each this.renderedMessages key="key" as |message|}} +
  • {{#if (eq message.type "message-chat-me")}} {{/each}} -
  • - -
-
+ + {{! Zero-height sticky zone so the button is pinned to the viewport edge + without ever contributing to the scroll content's height. If the + button were in flow, adding/removing it would change scrollHeight + and shift the view by the button's height. }} +
+ {{#unless scroll.isAtBottom}} + + {{/unless}} +
+