<ul class='chat-lines'>
  {{#if isFlashDisabled}}
    You need Adobe Flash Player to use chat.
    <br>
    <a href="http://get.adobe.com/flashplayer/">Download it from Adobe.</a>
  {{/if}}
  {{#if flashTimedOut}}
    Flash failed to load. Please contact support@twitch.tv with
    <a href="http://link.twitch.tv/error_information">error information.</a>
  {{/if}}
  {{#each (cast-unobservable-array messages) as |message|}}
    {{#if (eq message.style 'whisper')}}
      {{chat/whisper-line
          msgObject=message
          currentUserNick=currentUserNick
          isChannelLinksDisabled=hideLinks
          isViewerModeratorOrHigher=canModerate
          showModOverlay=showModOverlay
      }}
    {{else}}
      {{chat/message-line
          roomTrackingData=roomTrackingData
          msgObject=message
          currentUserNick=currentUserNick
          currentUserDisplayname=userData.name
          isChannelLinksDisabled=hideLinks
          isViewerModeratorOrHigher=canModerate
          isTwitchPrivilegedUser=isTwitchPrivilegedUser
          isDarkMode=isDarkMode
          showModOverlay=showModOverlay
          banUser=banUser
          unbanUser=unbanUser
          clickSubscriber=clickSubscriber
          timeoutUser=timeoutUser
          showMessageFlags=showMessageFlags
          showModerationActions=showModerationActions
          showTwitchBotActions=showTwitchBotActions
      }}
    {{/if}}
  {{/each}}
</ul>
