%nav
  %ol
    %li= link_to t(".back"), {action: :index}

%section.thread
  %h1= @thread.title
  .info
    .privacy
      - if @thread.private_to_group?
        = t ".private_to_group_message", group: @thread.group.name
      - else
        = t ".public_message"

  - @messages.each do |message|
    %article.message{id: dom_id(message)}
      .details
        .author
          = link_to message.created_by.name, user_profile_path(message.created_by)
          %br
          = image_tag message.created_by.profile.picture_thumbnail.url
        %time{datetime: message.created_at}
          = t ".posted_date", time_ago: time_ago_in_words(message.created_at)
      .body
        - if message.component
          = render "message/#{message_controller_map(message.component)}/show", message: message
        = message.body
  = render "messages/new"

%nav
  %ol
    %li= link_to t(".back"), {action: :index}

%section.thread
  %h1= @thread.title
  .info
    .privacy
      - if @thread.private_to_group?
        = t ".private_to_group_message", group: @thread.group.name
      - else
        = t ".public_message"

  - @messages.each do |message|
    %article.message{id: dom_id(message)}
      .details
        .author
          = link_to message.created_by.name, user_profile_path(message.created_by)
          - if message.created_by.profile.picture
            %br
            = image_tag message.created_by.profile.picture_thumbnail.url
        %time{datetime: message.created_at}
          = t ".posted_date", time_ago: time_ago_in_words(message.created_at)
      .body
        - if message.component
          = render "message/#{message_controller_map(message.component)}/show", message: message
        = message.body
  = render "messages/new"

Add missing guard for non-existent user thumbnail.
Add missing guard for non-existent user thumbnail.
